一、报错内容

intellij idea报错Could not autowire. No beans of 'UserMapper' type found.

二、解决步骤

1、File–>Settings
intellij idea报错Could not autowire. No beans of 'UserMapper' type found.
2、点击Editor–>点击Inspections–>取消勾选“Autowiring for Bean Class”–>点击ok
intellij idea报错Could not autowire. No beans of 'UserMapper' type found.

三、解决结果

没有红线错误了
intellij idea报错Could not autowire. No beans of 'UserMapper' type found.

相关文章: