Only one AsyncAnnotationBeanPostProcessor may exist within the context.

来源:互联网 发布:中国网络电影演员 编辑:程序博客网 时间:2024/05/22 04:34
Only one AsyncAnnotationBeanPostProcessor may exist within the context.只允许一个spring-task存在上下文中,
Failed to import bean definitions from URL location [classpath*:/config/spring-task.xml],导入spring-task文件失败
原因1:spring_task多次导入到当前项目中,删除下面重复导入的xml文件
  <import resource="classpath:spring-task.xml" />     <import resource="classpath:spring-task.xml" />     <import resource="classpath:testContext-elitecurrentproduct.xml" />

原因2:idea中存在项目循环依赖,因为你依赖的项目已经导入了spring-task.xml文件
解决方案:analyze--->analyze module dependecies 查看模具依赖,删除循环的依赖,不知道哪些是循环依赖就打开原来备份的项目,对照着查看那些是循环的,所以程序员备份项目是个好习惯,或者重新从svn中down下来查看
阅读全文
0 0