Spring Boot开发入门
1.1 Spring Boot概述
暂无
1.1.1 Spring Boot简介
暂无
1.4 单元测试与热部署
1.4.1 单元测试
针对独立工作单元,进行正确性验证的测试。单元测试可以增强程序的健壮性,还可以为程序重构提供依据。在使用时,需要提前在项目的pom.xml文件中添加spring-boot-starter-test测试依赖启动器,具体代码如下。
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>