【README】
本文阐述了 springboot 单测开发方式;
【1】引入springboot 单测制品库;
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<version>2.3.7.RELEASE</version>
<scope>test</scope>
</dependency>
【2】新建单测类
@RunWith(SpringRunner.class)
@ContextConfiguration(classes=MyTest.class)
@SpringBootTest
public class MyTest {
@Test
public void test1() {
。。。。。。
}
}