将下面的依赖中<scope>test</scope>去掉,问题解决。
<!--spring-test-->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-test</artifactId>
<version>5.0.5.RELEASE</version>
<!--<scope>test</scope>-->
</dependency>
Spring junit 测试报错:Failed to load ApplicationContext
最新推荐文章于 2024-03-14 17:12:30 发布