idea的mybatis的xml文件总是报警告SQL dialect is not configured
警告: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
这个时候我们发现只有一个警告了
这样就没有警告了:
把项目关掉再开启也还是没有警告了,写完收工