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

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(好像是把√去掉)再保存

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

上一篇:JS - 基础学习(6): reduce() 方法


下一篇:移动端自动化==>Windows-Android-Appium环境搭建