1.SpringBootTest测试时junit相关依赖虽然已经存在,但是会自己换位置重复下载在C盘的.m2目录下的Maven仓库中
确认maven配置是否正确, 如果正确,还是会下载, 在当前服务的pom.xml文件引入junit-platform-launcher依赖
<dependency>
<groupId>org.junit.platform</groupId>
<artifactId>junit-platform-launcher</artifactId>
<scope>test</scope>
</dependency>