IDEA报错Could not autowire. No beans of xxxMapper type found.
在IDEA的springBoot工程里,经常会遇到
Could not autowire. No beans of ‘UserMapper’ type found. less… (Ctrl+F1)
Inspection info:Checks autowiring problems in a bean class.
的错误提示,但是程序的编译和运行都是正常的,虽然不会产生影响,但是看起来让人难受
解决方法: