1.添加依赖
<dependency>
<groupId></groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
2.测试类上增加注解,classes后面跟的是测试类的类名
@RunWith()
@SpringBootTest(classes = )
1.添加依赖
<dependency>
<groupId></groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
2.测试类上增加注解,classes后面跟的是测试类的类名
@RunWith()
@SpringBootTest(classes = )