IDEA:Could not autowire. No beans of 'UserMapper' type found. more... (Ctrl+F1)

红线报错:Could not autowire. No beans of ‘ApiUserMapper’ type found. less… (Ctrl+F1) Inspection info:Checks autowiring problems in a bean class.

如图:
IDEA:Could not autowire. No beans of 'UserMapper' type found. more... (Ctrl+F1)

标题解决方法:在 Intellij Idea中设置一下:

Settings - Editor - Inspections - Spring - Spring Core - Code - Autowiring for Bean Class - disable(idea2017是把√去掉)
IDEA:Could not autowire. No beans of 'UserMapper' type found. more... (Ctrl+F1)