Intellij Idea開(kāi)發(fā)工具在@Autowired注入XxxMapper接口時(shí)報(bào)如下錯(cuò)誤:
Could not autowire. No beans of ‘XxxMapper’ type found. less… (Ctrl+F1)
Checks autowiring problems in a bean class.```
解決方法如下,在 Intellij Idea中設(shè)置一下:
Settings - Editor - Inspections - Spring - Spring Core - Code
-Autowiring for Bean Class - disable(把√去掉 )2017.1.1版本實(shí)測(cè)有效