springboot maven "lib"模块的单元测试

       因为在springboot maven的项目中分了模块,对于dao层模块来讲,它没有@SpringBootApplication修饰的启动类,也就是说这个模块是没有spring ApplicationContext的,在单元测试的时候,报了错误:java java.lang.IllegalStateException: Failed to load ApplicationContex
相关文章
相关标签/搜索