springboot整合mybatis mapper注入时显示could not autowire的解决

springboot整合mybatis mapper注入时显示could not autowire的错误,不影响使用,但是看着不爽,如下图: 
springboot整合mybatis mapper注入时显示could not autowire的解决

解决方法,在mapper加一个注解。如下图所示: 
@Component(value = “userMapper”) 

springboot整合mybatis mapper注入时显示could not autowire的解决


对于sql语句这种黄色的背景,真心是看不下去了(解决方案): 
springboot整合mybatis mapper注入时显示could not autowire的解决