解决SpringBoot测试提示Failed to resolve org.junit.platform:junit-platform-launcher:1.5.2
解决SpringBoot测试提示Failed to resolve org.junit.platform:junit-platform-launcher:1.5.2<dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-test<
·
解决SpringBoot测试提示Failed to resolve org.junit.platform:junit-platform-launcher:1.5.2
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>org.junit.vintage</groupId>
<artifactId>junit-vintage-engine</artifactId>
</exclusion>
</exclusions>
</dependency>
只需要添加:junit-platform-launcher依赖即可
<dependency>
<groupId>org.junit.platform</groupId>
<artifactId>junit-platform-launcher</artifactId>
<scope>test</scope>
</dependency>
发现其运行成功
更多推荐
所有评论(0)