springBoot 使用测试类报错

添加以下依赖:
junit4 依赖


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

原文地址:https://www.cnblogs.com/HHbJ/p/14651554.html