原文:大叔學Spring Boot筆記(14)A component required a bean of type '...Mapper' that could not be found問題解決

昨天引入Free Mybatis plugins組件后出現下面錯誤: 網上找了資料說需要在UserMapper加上 Mapper即可。 但當我嘗試加上 Mapper時報紅,即無法自動導入annotations.mapper. 再查找原因后,需要在POM.xml中加入mybatis依賴項: Rebuild后可以添加 Mapper成功。 不過再次執行,還是報同樣的錯誤。。。 再查資料,說是要在appl ...

2020-07-03 11:39 0 3930 推薦指數:

查看詳情

 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM