This commit is contained in:
jinyu 2016-04-21 16:57:42 +08:00
parent c73b51f84f
commit 2d0c9cfaaf

View File

@ -42,11 +42,11 @@ public class Weixin4jServerStartupWithoutThread {
* @throws WeixinException
*/
public static void main(String[] args) throws WeixinException {
ApplicationContext applicationContext = new ClassPathXmlApplicationContext(
new String[] { "classpath:/spring-bean.xml" });
//ApplicationContext applicationContext = new ClassPathXmlApplicationContext(
// new String[] { "classpath:/spring-bean.xml" });
new WeixinServerBootstrap(aesToken)
.handlerPackagesToScan(handlerPackage).openAlwaysResponse()
.resolveBeanFactory(new SpringBeanFactory(applicationContext))
//.resolveBeanFactory(new SpringBeanFactory(applicationContext))
.startup(port);
}
}