强迫症福利---去掉IDEA中mybatis对应的xml文件警告

烦人的mybatis xml文件警告终于给弄没了

只需三步

一、去掉 No data sources configure 警告

  • Prefernces ⇒ Editor ⇒ Inspections ⇒ SQL ⇒ No data sources configure。
  • 取消勾选,去掉这个检查,然后点击 OK 按钮即可

强迫症福利---去掉IDEA中mybatis对应的xml文件警告

二、去掉 SQL dialect is not configured 警告

  • Prefernces ⇒ Editor ⇒ Inspections ⇒ SQL ⇒ SQL dialect detection。
  • 取消勾选,去掉这个检查,然后点击 OK 按钮即可。

强迫症福利---去掉IDEA中mybatis对应的xml文件警告

三、去掉“注入语言”的背景色

  • Prefernces ⇒ Editor ⇒ Colors & Fonts ⇒ General ⇒ Code ⇒ Injected language fragment ⇒ Background。
  • 取消勾选,然后点击 OK 按钮即可。

强迫症福利---去掉IDEA中mybatis对应的xml文件警告

最终效果

强迫症福利---去掉IDEA中mybatis对应的xml文件警告