springboot 单元测试service遇到的坑(cannot resolve symbol “RunWith” )
springboot项目,对service层进行单元测试的步骤:1.添加相关依赖,2.在测试类添加两个注解:@RunWith(SpringJUnit4ClassRunner.class), @SpringBootTest(classes = ChargerOperateApplication.class),...
原创
2018-05-16 16:54:21 ·
5787 阅读 ·
0 评论