IDEA下解決Spring的Could not autowire. No beans of 'XXXMapper' type found. more... (Ctrl+F1)

問題描述 在用MyBatis的註解方式來配置Mapper接口的時候 注入到類裏 就遇到了這個Could not autowire. No beans of ‘XXXMapper’ type found的錯誤提示 其實還有很多情況都會報這樣的錯誤提示( Spring太方便了 程序的編譯和運行都是沒有問題的 這個錯誤提示並不會產生影響 但對於強迫症的我來說 紅色的提示屬實有點礙眼 原因 兩種情況 要麼
相關文章
相關標籤/搜索