Could not autowire. No beans of 'TbItemMapper' type found. less... (Ctrl+F1) Checks autowir
Posted Kmily_Lee
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Could not autowire. No beans of 'TbItemMapper' type found. less... (Ctrl+F1) Checks autowir相关的知识,希望对你有一定的参考价值。
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(好像是把√去掉)再保存
以上是关于Could not autowire. No beans of 'TbItemMapper' type found. less... (Ctrl+F1) Checks autowir的主要内容,如果未能解决你的问题,请参考以下文章