[IDEA] xml文件SQL dialect is not configured解决

用idea打开xml文件,看到大段的波浪线,鼠标hover,告警如下

框框里一共有2个告警
1、No data sources are configured to run this SQL and provide advanced code assistance. Disable this inspection via problem menu (Alt+Enter).
2、SQL dialect is not configured.

先解决第1个告警 No data sources are configured to run this SQL...
在IDEA的右侧,点击dataBase,点击新建,找到MySQL,依次点击。


配置界面全部默认,点击OK。

再看xml文件,只剩一个告警了。

再解决第2个告警 SQL dialect is not configured

点击 File -> Settings

先搜索inspections,再搜索sql dialect,取消勾选SQL dialect detection,点击”OK”

IDEA的xml文件中,波浪线消失,也没有告警了。

完结

同步更新到自己的语雀
https://www.yuque.com/diracke...

你可能感兴趣的:([IDEA] xml文件SQL dialect is not configured解决)