Springboot实现test单元测试(spring-boot-starter-test) idea版本:2019.3 springboot对单元测试的支持已经很完善,步骤很简单 1.导如poi依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-test