Could not autowire. No beans of 'TbItemMapper' type found. less... (Ctrl+F1) Checks autowiring prob


Intellij Idea開發工具在@Autowired或者@Resource注入XxxMapper接口時報如下錯誤:

Could not autowire. No beans of 'TbItemMapper' type found. less... (Ctrl+F1)  Checks autowiring prob

解決方法如下,在 Intellij Idea中設置一下:

Settings - Editor - Inspections - Spring - Spring Core - Code - Autowiring for Bean Class - disable(好像是把√去掉)再保存


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM