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 @   我也有梦想呀  阅读(261)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· 阿里巴巴 QwQ-32B真的超越了 DeepSeek R-1吗?
· 【译】Visual Studio 中新的强大生产力特性
· 10年+ .NET Coder 心语 ── 封装的思维:从隐藏、稳定开始理解其本质意义
· 【设计模式】告别冗长if-else语句:使用策略模式优化代码结构
点击右上角即可分享
微信分享提示