java JUnit在升级到Spring boot 2.3后失败
将我的应用程序从Spring boot 2.1.6升级到Spring boot 2.3 在我的Yaml文件中添加此属性后,我可以运行我的应用程序
春天。主要的允许bean定义覆盖:true
但即使在我的yml文件中有相同的属性,得到以下错误,任何线索都将被感激
爪哇。在DefaultCacheAwareContextLoaderDelegate处lang.IllegalStateException。爪哇:132 原因:org。springframework。豆。工厂支持BeanDefinitionOverrideeException位于DefaultListableBeanFactory。爪哇:995
作为参考,这是我的Junit示例类
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
@ActiveProfiles("local,test")
@DirtiesContext
public class ControllerContextTest {
}
共 (0) 个答案