Could not autowire. No beans of ‘UserMapper‘ type found,不能自动装配。没有找到‘UserMapper‘类型的bean。少……检查信息:检查

Could not autowire. No beans of ‘UserMapper‘ type found,不能自动装配。没有找到‘UserMapper‘类型的bean。少……检查信息:检查
操作:Settings - Editor - Inspections - Spring - Spring Core - Code - Autowiring for Bean Class - disable对勾去掉即可
如图:
Could not autowire. No beans of ‘UserMapper‘ type found,不能自动装配。没有找到‘UserMapper‘类型的bean。少……检查信息:检查