springboot整合mybatis mapper注入時顯示could not autowire的解決

springboot整合mybatis mapper注入時顯示could not autowire的錯誤,不影響使用,但是看着不爽,如下圖:  解決方法,在mapper加一個註解。如下圖所示:  @Component(value = 「userMapper」)  對於sql語句這種黃色的背景,真心是看不下去了(解決方案): 
相關文章
相關標籤/搜索