1、在菜单idea–>setting -->Editor–>Inspections–>SQL下关闭下列两个选项
No data sources configuared和SQL dialect detection
关闭后高亮变为绿色
2、关闭setting–>Editor–>Code Schema–>General–>Code–>Injected language fragment下选项
1、在菜单idea–>setting -->Editor–>Inspections–>SQL下关闭下列两个选项
No data sources configuared和SQL dialect detection
关闭后高亮变为绿色
2、关闭setting–>Editor–>Code Schema–>General–>Code–>Injected language fragment下选项