IntelliJ IDEA When opening the mybatis xml file, the background color of the sql statement in the corresponding xml file always has a yellow or green background color.
The prompt (in the red circle) has been explained that you need to configure the data source in IDEA (usually we rarely use the IDE to view the database content, but use other specialized DB tools).
Remove No data sources configure warning
Of course, if you choose to configure data source, it is just a personal habit)
Preferences ⇒ Editor ⇒ Inspections ⇒ SQL ⇒ No data sources configure. Uncheck, remove this check, and then click the OK button.
There is still a warning at this time, but the warning message has changed, as shown in the red circle in the picture
Remove SQL dialect is not configured Warning Preferences ⇒ Editor ⇒ Inspections ⇒ SQL ⇒ SQL dialect detection. Uncheck, remove this check, and then click the OK button.
There is still a green background color
Remove the background color of "injected language" Preferences ⇒ Editor ⇒ Colors & Fonts ⇒ General ⇒ Code ⇒ Injected language fragment ⇒ Background. Uncheck and click the OK button.