01,Could not autowire. No beans of 'UserMapper' type found
1,問題描述,通過反射動態(tài)實現(xiàn)的接口在調(diào)用時會出現(xiàn)以上提示,常見的如 ORM 框架的 Dao 層
2,該錯誤不是代碼問題,可以手動關(guān)閉該錯誤
3,F(xiàn)ile > Setting > Editor > Inspections - Spring > Spring Core > Code > Autowiring for Bean Class

image.png
02,F(xiàn)ound duplicated code
1,問題描述,當(dāng)連個文件中出現(xiàn)相同的 java 代碼時,會出現(xiàn)以下煩人的波浪線提示

image.png
2,F(xiàn)ile > Setting > Editor > Inspections,在右邊的搜索框輸入:Duplicated code

image.png
03, @Autowired 字段注入警告去除
1,在右邊的搜索框輸入:Field injection warning

image.png