报错示:
@Runwith注解不能使用 需要引入依赖坐标
解决办法:在pom.xml中要有下面两个依赖
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-test</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.13</version> </dependency>