idea的mybatis的xml文件总是报警告SQL dialect is not configured

来源:互联网 发布:tensorflow查看变量值 编辑:程序博客网 时间:2024/06/02 04:27

警告:No data sources are configured to run this SQL and provide advanced code assistance. Disable this inspection via problem menu (Alt+Enter). more… (Ctrl+F1)

SQL dialect is not configured. PostgreSQL, SQL Server match best. more… (Ctrl+F1)
这里写图片描述

这是两个警告,首先我们解决一个警告:

File -> setting 搜索inspections,再搜索sql,找到SQL dialect detection去掉勾,然后apply ->ok
这里写图片描述

这个时候我们发现只有一个警告了
这里写图片描述

这样就没有警告了:
这里写图片描述
把项目关掉再开启也还是没有警告了,写完收工

原创粉丝点击