Java 后台开发

IntelliJ IDEA Could not autowire

2018-06-26  本文已影响0人  Scorpio_cc

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版本实测有效
上一篇下一篇

猜你喜欢

热点阅读