43. 测试
Spring Boot提供很多有用的工具类和注解用于帮助你测试应用,主要分两个 模块:
spring-boot-test
包含核心组件,spring-boot-test-autoconfigure
为测试提供自动配置。大多数开发者只需要引用
spring-boot-starter-test
“Starter”,它既提供Spring Boot测试模块,也提供JUnit,AssertJ,Hamcrest和很多有用的依赖。最近更新 4yr ago