原文:IDEA 報 「Could not autowire. No beans of 'UserMapper' type found」錯誤解決方案

IDEA 安裝 MyBatis plugin 插件,然后重啟 IDEA 即可解決問題。 ...

2019-07-26 16:48 1 2392 推薦指數:

查看詳情

IntelliJ Idea解決Could not autowire. No beans of 'xxxx' type found錯誤提示

1.問題描述   在Idea的spring工程里,經常會遇到Could not autowire. No beans of 'xxxx' type found錯誤提示。但程序的編譯和運行都是沒有問題的,這個錯誤提示並不會產生影響。但紅色的錯誤提示在有些有強迫症的程序員眼里,多多少少有些不太舒服 ...

Sat Jun 01 17:27:00 CST 2019 0 8862
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM