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