去配置文件中找 , 某个配置文件被引用了两次以上.移除后保留一个即可.如下即可产生上述问题
<import resource="classpath:testContext-currentproduct.xml" /> <import resource="classpath:testContext-currentproduct.xml" /> <import resource="classpath:testContext-elitecurrentproduct.xml" />
Configuration problem: Only one AsyncAnnotationBeanPostProcessor may exist within the context.
原文:http://www.cnblogs.com/taojintianxia/p/5126713.html