一. 问题背景
使用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>
位置如下:

所有评论(0)