可以在setting中自己找,也可以在頂部輸入 No data sources configure , SQL dialect detection , Injected language fragment 然后點擊右側Inspections選中要去掉的勾選項
1、setting-⇒ Editor ⇒ Inspections ⇒ SQL ⇒ No data sources configure。去掉勾選
2、setting⇒ Editor ⇒ Inspections ⇒ SQL ⇒ SQL dialect detection。去掉勾選
3、setting⇒ Editor ⇒ Colors & Fonts ⇒ General ⇒ Code ⇒ Injected language fragment ⇒ Background 去掉勾選
轉載:https://blog.csdn.net/WindSwordNeverRegret/article/details/81587532