up
This commit is contained in:
parent
6af5d56fa9
commit
59bf6ff380
@ -33,6 +33,13 @@
|
|||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-deploy-plugin</artifactId>
|
||||||
|
<configuration>
|
||||||
|
<skip>true</skip>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
@ -65,6 +72,7 @@
|
|||||||
<groupId>org.springframework</groupId>
|
<groupId>org.springframework</groupId>
|
||||||
<artifactId>spring-context</artifactId>
|
<artifactId>spring-context</artifactId>
|
||||||
<version>4.2.1.RELEASE</version>
|
<version>4.2.1.RELEASE</version>
|
||||||
|
<optional>true</optional>
|
||||||
</dependency>
|
</dependency>
|
||||||
<!-- test.... -->
|
<!-- test.... -->
|
||||||
<dependency>
|
<dependency>
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
package com.foximy.weixin4j.example.server;
|
package com.foxinmy.weixin4j.example.server;
|
||||||
|
|
||||||
import io.netty.util.internal.logging.InternalLoggerFactory;
|
import io.netty.util.internal.logging.InternalLoggerFactory;
|
||||||
|
|
||||||
@ -1,4 +1,4 @@
|
|||||||
package com.foximy.weixin4j.example.server;
|
package com.foxinmy.weixin4j.example.server;
|
||||||
|
|
||||||
import com.foxinmy.weixin4j.exception.WeixinException;
|
import com.foxinmy.weixin4j.exception.WeixinException;
|
||||||
import com.foxinmy.weixin4j.startup.WeixinServerBootstrap;
|
import com.foxinmy.weixin4j.startup.WeixinServerBootstrap;
|
||||||
@ -28,7 +28,7 @@ public class Weixin4jServerStartupWithoutThread {
|
|||||||
/**
|
/**
|
||||||
* 处理微信消息的全限包名(也可通过addHandler方式一个一个添加)
|
* 处理微信消息的全限包名(也可通过addHandler方式一个一个添加)
|
||||||
*/
|
*/
|
||||||
private static String handlerPackage = "com.foximy.weixin4j.example.server.handler";
|
private static String handlerPackage = "com.foxinmy.weixin4j.example.server.handler";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 入口函数 可使用assembly插件打成可执行zip包:https://github.com/foxinmy/weixin4j/wiki/
|
* 入口函数 可使用assembly插件打成可执行zip包:https://github.com/foxinmy/weixin4j/wiki/
|
||||||
@ -1,4 +1,4 @@
|
|||||||
package com.foximy.weixin4j.example.server.handler;
|
package com.foxinmy.weixin4j.example.server.handler;
|
||||||
|
|
||||||
import org.springframework.stereotype.Component;
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
@ -1,4 +1,4 @@
|
|||||||
package com.foximy.weixin4j.example.server.handler;
|
package com.foxinmy.weixin4j.example.server.handler;
|
||||||
|
|
||||||
import org.springframework.stereotype.Component;
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
@ -1,4 +1,4 @@
|
|||||||
package com.foximy.weixin4j.example.server.handler;
|
package com.foxinmy.weixin4j.example.server.handler;
|
||||||
|
|
||||||
import org.springframework.stereotype.Component;
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
@ -1,4 +1,4 @@
|
|||||||
package com.foximy.weixin4j.example.server.handler;
|
package com.foxinmy.weixin4j.example.server.handler;
|
||||||
|
|
||||||
import org.springframework.stereotype.Component;
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
@ -75,7 +75,7 @@
|
|||||||
|
|
||||||
<!-- 微信消息服务~start -->
|
<!-- 微信消息服务~start -->
|
||||||
<bean
|
<bean
|
||||||
class="com.foximy.weixin4j.example.server.Weixin4jServerStartupWithThread">
|
class="com.foxinmy.weixin4j.example.server.Weixin4jServerStartupWithThread">
|
||||||
<!-- 端口号 微信暂时只支持80端口 所以需要自己把微信被动消息请求转发(nginx等)到这个端口上来 -->
|
<!-- 端口号 微信暂时只支持80端口 所以需要自己把微信被动消息请求转发(nginx等)到这个端口上来 -->
|
||||||
<constructor-arg index="0" value="30000" />
|
<constructor-arg index="0" value="30000" />
|
||||||
<!-- token信息 -->
|
<!-- token信息 -->
|
||||||
@ -91,11 +91,11 @@
|
|||||||
</constructor-arg>
|
</constructor-arg>
|
||||||
<!-- 处理微信消息的全限包名 -->
|
<!-- 处理微信消息的全限包名 -->
|
||||||
<constructor-arg index="2"
|
<constructor-arg index="2"
|
||||||
value="com.foximy.weixin4j.example.server.handler" />
|
value="com.foxinmy.weixin4j.example.server.handler" />
|
||||||
</bean>
|
</bean>
|
||||||
<!-- 微信消息服务~end -->
|
<!-- 微信消息服务~end -->
|
||||||
|
|
||||||
<!-- spring扫描策略~start -->
|
<!-- spring扫描策略~start -->
|
||||||
<context:component-scan base-package="com.foximy.weixin4j.example.server.handler" />
|
<context:component-scan base-package="com.foxinmy.weixin4j.example.server.handler" />
|
||||||
<!-- spring扫描策略~end -->
|
<!-- spring扫描策略~end -->
|
||||||
</beans>
|
</beans>
|
||||||
@ -8,10 +8,10 @@ JAVA_HOME="/usr/local/java"
|
|||||||
RUNNING_USER=root
|
RUNNING_USER=root
|
||||||
|
|
||||||
#App home
|
#App home
|
||||||
APP_HOME="/usr/local/weixin4j"
|
APP_HOME="/usr/local/weixin4j/weixin4j-server"
|
||||||
|
|
||||||
#Main class
|
#Main class
|
||||||
APP_MAINCLASS=com.foximy.weixin4j.example.server.Weixin4jServerStartupWithoutThread
|
APP_MAINCLASS=com.foxinmy.weixin4j.example.server.Weixin4jServerStartupWithoutThread
|
||||||
|
|
||||||
#classpath
|
#classpath
|
||||||
CLASSPATH=$APP_HOME/classes
|
CLASSPATH=$APP_HOME/classes
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user