Intellij IDEA2017-Spring Boot配置无误,装配对象有红色斜划线,Could not autowire.No bean of "xxxxMapper" type found.
Spring-boot项目中自动注入时,扫描级别过高报错问题!!!
File
->Setting
->搜索spring->选择Inspections
,将Autowiring for Bean Class
将 Error
修改成Warning
级别即可!
修改后,无红色下划线!
♚学习、实战、总结、分享,让生活变得更美好!
☞林大侠博客:https://coding0110lin.blog.****.net/ 欢迎转载,一起技术交流探讨!