一. 问题背景

使用SpringBoot的单元测试,启动时报错:Failed to resolve org.junit.platform:junit-platform-launcher:

二. 解决方案

在pom中添加以下依赖:

<dependency>
    <groupId>org.junit.platform</groupId>
     <artifactId>junit-platform-launcher</artifactId>
     <scope>test</scope>
 </dependency>

位置如下:
在这里插入图片描述

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐