springBoot项目单元测试卡顿在Resoving Maven dependencies

1.问题概述

sprintBoot 单元测试的时候解析不出相关依赖,出现卡顿情况,严重甚至要任务管理器结束idea。

springBoot项目单元测试卡顿在Resoving Maven dependencies_第1张图片

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>

你可能感兴趣的:(spring,boot,单元测试,maven)