单元测试 Spring Boot使用单元测试 单元测试总结 Spring Boot中采用Mockito来mock所测试的类的依赖(避免加载spring bean,避免启动服务器) SpringBoot让测试类飞起来的方法