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

springboot整合mybatis mapper注入时显示could not autowire的错误,不影响使用,但是看着不爽,如下图:  解决方法,在mapper加一个注解。如下图所示:  @Component(value = “userMapper”)  对于sql语句这种黄色的背景,真心是看不下去了(解决方案): 
相关文章
相关标签/搜索