1.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>
<scope>test</scope>
</dependency>
2.Test类
@SpringBootTest
@RunWith(SpringRunner.class)
class TestManyRedisApplicationTests {
@Test
void contextLoads() {
}
}