This commit is contained in:
jinyu 2016-05-07 16:17:28 +08:00
parent 6af5d56fa9
commit 59bf6ff380
9 changed files with 20 additions and 12 deletions

View File

@ -33,6 +33,13 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
@ -65,6 +72,7 @@
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>4.2.1.RELEASE</version>
<optional>true</optional>
</dependency>
<!-- test.... -->
<dependency>

View File

@ -1,4 +1,4 @@
package com.foximy.weixin4j.example.server;
package com.foxinmy.weixin4j.example.server;
import io.netty.util.internal.logging.InternalLoggerFactory;

View File

@ -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.startup.WeixinServerBootstrap;
@ -28,7 +28,7 @@ public class Weixin4jServerStartupWithoutThread {
/**
* 处理微信消息的全限包名(也可通过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/

View File

@ -1,4 +1,4 @@
package com.foximy.weixin4j.example.server.handler;
package com.foxinmy.weixin4j.example.server.handler;
import org.springframework.stereotype.Component;

View File

@ -1,4 +1,4 @@
package com.foximy.weixin4j.example.server.handler;
package com.foxinmy.weixin4j.example.server.handler;
import org.springframework.stereotype.Component;

View File

@ -1,4 +1,4 @@
package com.foximy.weixin4j.example.server.handler;
package com.foxinmy.weixin4j.example.server.handler;
import org.springframework.stereotype.Component;

View File

@ -1,4 +1,4 @@
package com.foximy.weixin4j.example.server.handler;
package com.foxinmy.weixin4j.example.server.handler;
import org.springframework.stereotype.Component;

View File

@ -75,7 +75,7 @@
<!-- 微信消息服务start -->
<bean
class="com.foximy.weixin4j.example.server.Weixin4jServerStartupWithThread">
class="com.foxinmy.weixin4j.example.server.Weixin4jServerStartupWithThread">
<!-- 端口号 微信暂时只支持80端口 所以需要自己把微信被动消息请求转发(nginx等)到这个端口上来 -->
<constructor-arg index="0" value="30000" />
<!-- token信息 -->
@ -91,11 +91,11 @@
</constructor-arg>
<!-- 处理微信消息的全限包名 -->
<constructor-arg index="2"
value="com.foximy.weixin4j.example.server.handler" />
value="com.foxinmy.weixin4j.example.server.handler" />
</bean>
<!-- 微信消息服务end -->
<!-- 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 -->
</beans>

View File

@ -8,10 +8,10 @@ JAVA_HOME="/usr/local/java"
RUNNING_USER=root
#App home
APP_HOME="/usr/local/weixin4j"
APP_HOME="/usr/local/weixin4j/weixin4j-server"
#Main class
APP_MAINCLASS=com.foximy.weixin4j.example.server.Weixin4jServerStartupWithoutThread
APP_MAINCLASS=com.foxinmy.weixin4j.example.server.Weixin4jServerStartupWithoutThread
#classpath
CLASSPATH=$APP_HOME/classes