up
This commit is contained in:
parent
098ae0539f
commit
2b8eef34e1
@ -48,12 +48,14 @@
|
||||
<groupId>com.foxinmy</groupId>
|
||||
<artifactId>weixin4j-mp</artifactId>
|
||||
<version>1.6.9</version>
|
||||
<optional>true</optional>
|
||||
</dependency>
|
||||
<!-- 微信企业号 -->
|
||||
<dependency>
|
||||
<groupId>com.foxinmy</groupId>
|
||||
<artifactId>weixin4j-qy</artifactId>
|
||||
<version>1.6.9</version>
|
||||
<optional>true</optional>
|
||||
</dependency>
|
||||
<!-- 微信被动消息(回调模式) -->
|
||||
<dependency>
|
||||
@ -66,6 +68,7 @@
|
||||
<groupId>redis.clients</groupId>
|
||||
<artifactId>jedis</artifactId>
|
||||
<version>2.6.0</version>
|
||||
<optional>true</optional>
|
||||
</dependency>
|
||||
<!-- 使用spring容器管理Handler时需要引用,针对weixin4j-server -->
|
||||
<dependency>
|
||||
|
||||
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user