IntelliJ idea在Spring配置无错误时,装配对象出现 Could not autowire. no beans of "XXX" type found

案例:本人在使用IntelliJ idea 2017.2 开发SSM应用,作Junit Test测试时,经过Resource注解装配DAO时出现了ERROR的错误提示(Could not autowire. no beans of "XXX" type found). 可是当时并未在乎,由于单元测试可以正常运行,遂认为对象在mybatis-spring中实际上是已正确装配的.程序员   但在以后的
相关文章
相关标签/搜索