IDEA 顯示波浪形警告信息,但是程序沒有報錯


spring boot 項目,app 中自動配置 bean 的時候,IDEA 顯示波浪形警告信息:

1 could not autowire. No beans of ‘UserDaoMapper’ type found.
2 Inspection info: Checks autowiring problems in a bean class

是因為 IDEA 在編譯期間會為我們進行代碼審查可以幫助我們發現一些錯誤信息,還可以設置不同的錯誤信息級別,在錯誤信息級別較高的時候進行高亮顯示,不高的不進行提示。解決方法為在設置中修改:

Preference -> Editor -> inspections -> spring - spring core -> code -> autowired for bean class。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



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