今天在做單元測試的時候,出現了這個問題:
Caused by: org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Only one AsyncAnnotationBeanPostProcessor may exist within the context.
Offending resource: URL [file:/D:/WorkSpace/SMS/module-infrastructure-service/infrastructure-service/target/classes/spring-bean.xml]
我把 spring-bean.xml 里面的
<task:annotation-driven/> 這個給注釋了,然后重啟,就可以了。至於什么原因,還在思考中