去掉IntelliJ IDEA 中 mybatis 对应的 xml 文件警告
生活随笔
收集整理的這篇文章主要介紹了
去掉IntelliJ IDEA 中 mybatis 对应的 xml 文件警告
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
轉(zhuǎn)載自:https://blog.csdn.net/aubdiy/article/details/68485336
IntelliJ IDEA 打開 mybatis 的 xml 文件時,對應(yīng)的 xml 文件中 sql 語句背景色總是有黃色或綠色的背景色。
提示(紅圈處)上已經(jīng)說明,需要配置在 IDEA 中配置 data source (通常我們很少使用 IDE 去查看數(shù)據(jù)庫內(nèi)容,而是使用其他專門的 DB 工具)。
去掉 No data sources configure 警告
當(dāng)然,如果你選擇配置 data source 也可以,純屬個人習(xí)慣)
- Prefernces ? Editor ? Inspections ? SQL ? No data sources configure。
- 取消勾選,去掉這個檢查,然后點(diǎn)擊 OK 按鈕即可。
此時仍有警告,不過警告信息變了,如圖中紅圈所示
去掉 SQL dialect is not configured 警告
- Prefernces ? Editor ? Inspections ? SQL ? SQL dialect detection。
- 取消勾選,去掉這個檢查,然后點(diǎn)擊 OK 按鈕即可。
此時仍有綠色的背景色
去掉“注入語言”的背景色
- Prefernces ? Editor ? Colors & Fonts ? General ? Code ? Injected language fragment ? Background。
- 取消勾選,然后點(diǎn)擊 OK 按鈕即可。
世界清凈了!!!
世界清凈了!!!
世界清凈了!!!
總結(jié)
以上是生活随笔為你收集整理的去掉IntelliJ IDEA 中 mybatis 对应的 xml 文件警告的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: intellij从git上拉取maven
- 下一篇: produces在@requestMap