问题
SpringBoot生成的Test骨架,运行一直正在启动中,导致卡死,只好关闭idea,清缓存换idea版本都没解决。
解决办法
在pom.xml添加以下依赖代码,重启即可
<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>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.11</version>
<scope>test</scope>
</dependency>