SpringBoot启动@Test单元测试时,一致卡在加载junit-bom-5.6.3.pom.xml文件

今天做项目时创建一个SpringBoot工程,使用的版本是<spring-boot.version>2.3.7.RELEASE</spring-boot.version>

当我什么都写好了的时候,准备使用测试类测试一下,结果直接炸了......硬是给我卡在加载junit-bom-5.6.3.pom.xml文件

所以这里记录一下踩的坑,希望大家不要遇到. 解决办法如下:导入相关的依赖

<!-- junit-jupiter-api -->
<dependency>
	<groupId>org.junit.jupiter</groupId>
	<artifactId>junit-jupiter-api</artifactId>
	<version>5.6.3</version>
	<scope>test</scope>
</dependency>
posted @ 2022-05-12 00:27  我也有梦想呀  阅读(277)  评论(0)    收藏  举报