在使用SpringBoot测试时如果出现Failed to resolve org.junit.platform:junit-platform-launcher:1.x.x
这样的问题,最主要的问题是IntelliJ IDEA版本和junit版本不适配问题,所以最根本的解决方法是将IntelliJ IDEA的版本升级到2020.x.x以上的版本,其次是直接在项目的pom.xml文件中添加如下依赖:
<dependency>
<groupId>org.junit.platform</groupId>
<artifactId>junit-platform-launcher