1.问题概述
sprintBoot 单元测试的时候解析不出相关依赖,出现卡顿情况,严重甚至要任务管理器结束idea。
2.错误信息:说是无法解析junit中的依赖
3.解决方案: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>