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。