This commit is contained in:
jinyu
2016-05-09 22:44:50 +08:00
parent 098ae0539f
commit 2b8eef34e1
2 changed files with 6 additions and 1 deletions
@@ -1,6 +1,7 @@
package com.foxinmy.weixin4j.example.server;
import com.foxinmy.weixin4j.exception.WeixinException;
import com.foxinmy.weixin4j.handler.DebugMessageHandler;
import com.foxinmy.weixin4j.startup.WeixinServerBootstrap;
/**
@@ -39,7 +40,8 @@ public class Weixin4jServerStartupWithoutThread {
*/
public static void main(String[] args) throws WeixinException {
new WeixinServerBootstrap(aesToken)
.handlerPackagesToScan(handlerPackage).openAlwaysResponse()
.handlerPackagesToScan(handlerPackage)
.addHandler(DebugMessageHandler.global).openAlwaysResponse()
.startup(port);
}
}