Intellij IDEA2017-Spring Boot配置无误,装配对象有红色斜划线,Could not autowire.No bean of "xxxxMapper" type found.

Spring-boot项目中自动注入时,扫描级别过高报错问题!!!

Intellij IDEA2017-Spring Boot配置无误,装配对象有红色斜划线,Could not autowire.No bean of "xxxxMapper" type found.

File->Setting->搜索spring->选择Inspections,将Autowiring for Bean ClassError修改成Warning级别即可!

Intellij IDEA2017-Spring Boot配置无误,装配对象有红色斜划线,Could not autowire.No bean of "xxxxMapper" type found.

修改后,无红色下划线!

Intellij IDEA2017-Spring Boot配置无误,装配对象有红色斜划线,Could not autowire.No bean of "xxxxMapper" type found.

♚学习、实战、总结、分享,让生活变得更美好!
☞林大侠博客:https://coding0110lin.blog.****.net/  欢迎转载,一起技术交流探讨!