up
This commit is contained in:
parent
c73b51f84f
commit
2d0c9cfaaf
@ -42,11 +42,11 @@ public class Weixin4jServerStartupWithoutThread {
|
|||||||
* @throws WeixinException
|
* @throws WeixinException
|
||||||
*/
|
*/
|
||||||
public static void main(String[] args) throws WeixinException {
|
public static void main(String[] args) throws WeixinException {
|
||||||
ApplicationContext applicationContext = new ClassPathXmlApplicationContext(
|
//ApplicationContext applicationContext = new ClassPathXmlApplicationContext(
|
||||||
new String[] { "classpath:/spring-bean.xml" });
|
// new String[] { "classpath:/spring-bean.xml" });
|
||||||
new WeixinServerBootstrap(aesToken)
|
new WeixinServerBootstrap(aesToken)
|
||||||
.handlerPackagesToScan(handlerPackage).openAlwaysResponse()
|
.handlerPackagesToScan(handlerPackage).openAlwaysResponse()
|
||||||
.resolveBeanFactory(new SpringBeanFactory(applicationContext))
|
//.resolveBeanFactory(new SpringBeanFactory(applicationContext))
|
||||||
.startup(port);
|
.startup(port);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user