目录 整合 添加依赖 编写测试用例 参考 SpringBoot 本身已经实现了对 Junit 的封装,可以很简单地实现单元测试。 整合 添加依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId