单元测试
1、在pom包中添加spring-boot-starter-test包引用
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-test</artifactId> <scope>test</scope> </dependency>
1、在pom包中添加spring-boot-starter-test包引用
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-test</artifactId> <scope>test</scope> </dependency>
相关文章: