maven仓库中的依赖是:
<!-- https://mvnrepository.com/artifact/org.springframework/spring-test -->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-test</artifactId>
<version>4.3.7.RELEASE</version>
<scope>test</scope>
</dependency>
把
<scope>test</scope>
去掉就可以用了
本文介绍了如何在 Maven 项目中正确配置 Spring Test 的依赖。通过示例展示了如何移除 scope 属性来使得依赖在整个项目中可用,适用于进行单元测试及集成测试。

775

被折叠的 条评论
为什么被折叠?



