应用程序上下文已初始化两次,但org.springframework.scheduling.config.AnnotationDrivenBeanDefinitionParser第二次注册bean ASYNC_ANNOTATION_PROCESSOR_BEAN_NAME失败。
我在单元测试中遇到了此问题,其中在父测试类和子测试类上都意外地使用了@ContextConfiguration(“ / path / to / applicationContext.xml”)(默认值为heritLocations true)。



