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

Springboot整合mybatis mapper注入時顯示could not autowire的錯誤 1.解決方法,在mapper加一個註解。如下圖所示: @Mapper @Component(value = 「StudentDao」) 儘量不要使用@Repository,雖然可以去掉紅線,但是是屬於hibernate。如果使用就是存在倆個持久層框架,比較傷內存。切記。 解決辦法
相關文章
相關標籤/搜索