idea test 报错 Failed to resolve org.junit.platform:junit-platform-launcher:1.8.2
今天在用idea测试时,发现报了一个错误:Error running ‘Springboot04DataApplicationTests.contextLoads’: Failed to resolve org.junit.platform:junit-platform-launcher:1.8.2这是因为pom里面需要添加一个依赖,复制下面的代码,粘贴到pom里即可dependency>&
·
今天在用idea测试时,发现报了一个错误:Error running ‘Springboot04DataApplicationTests.contextLoads’: Failed to resolve org.junit.platform:junit-platform-launcher:1.8.2这是因为pom里面需要添加一个依赖,复制下面的代码,粘贴到pom里即可
dependency>
<!-- this is needed or IntelliJ gives junit.jar or junit-platform-launcher:1.3.2 not found errors -->
<groupId>org.junit.platform</groupId>
<artifactId>junit-platform-launcher</artifactId>
<scope>test</scope>
</dependency>
更多推荐
已为社区贡献2条内容
所有评论(0)