IntelliJ IDEA Could not autowire自动注入问题

Intellij Idea开发工具在@Autowired注入XxxMapper接口时报如下错误:

Could not autowire. No beans of ‘XxxMapper’ type found. less… (Ctrl+F1)
Checks autowiring problems in a bean class.```

解决方法如下,在 Intellij Idea中设置一下:

Settings - Editor - Inspections - Spring - Spring Core - Code  
-Autowiring for Bean Class - disable(把√去掉 )2017.1.1版本实测有效

你可能感兴趣的:(IntelliJ IDEA Could not autowire自动注入问题)