Fetch the repository succeeded.
This action will force synchronization from 夏悸/wechat, which will overwrite any changes that you have made since you forked the repository, and can not be recovered!!!
Synchronous operation will process in the background and will refresh the page when finishing processing. Please be patient.
##微信公共平台开发模式(JAVA) SDK
#####作者:____′↘夏悸 http://weibo.com/521090828
这里已经包含了源码和默认的一个实现。如果你想实现自己的个性话定制,只需把lib加人到你的web的lib目录。 加入classPath下面增加一个wechat.properties和log4j.properties的配置,在wechat.properties里面的MessageProcessingHandlerImpl是配置自定义的消息处理器的类路径(具体可以查看默认实现的源码) web.xml里面配置一个过滤器。
<filter>
<filter-name>WeChatFilter</filter-name>
<filter-class>com.gson.WeChatFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>WeChatFilter</filter-name>
<url-pattern>/wechat/*</url-pattern>
</filter-mapping>
demo里面我默认配置是过滤(/wechat/*)类型的所有请求。星号表示在公众平台里面配置的Token。
####例如:
你的Token如果设置为abcdefg的话,那么你对应配置的URL就应该为 http://xxxxx.com/wechat/abcdefg
##演示账号:
###功能介绍:
Sign in for post a comment
Comments ( 0 )