摘要: Spring boot 1.40 JUnit 4 需要依赖包 spring-boot-starter-test、spring-test 建立class,加上如下注解,即可进行单元测试,别的帖子里说要加@WebAppConfiguration,但是在实际测试中,我报错了,无法加载service bea 阅读全文
posted @ 2017-02-09 19:26 辉夜 阅读(402) 评论(0) 推荐(0) 编辑