Remove the xml file warning corresponding to mybatis in IntelliJ IDEA

When IntelliJ IDEA opens the xml file of mybatis, the background color of the sql statement in the corresponding xml file always has a yellow or green background color.


The prompt (red circle) has already stated that it needs to be configured in IDEA  data source (usually we rarely use IDE to view database content, but use other specialized DB tools).


Remove No data sources configure warning

Of course, if you choose to configure  data source it, it is purely personal habit)

  • Prefernces ⇒ Editor ⇒ Inspections ⇒ SQL ⇒ No data sources configure。
  • Uncheck it, 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 by the red circle in the picture



Remove the SQL dialect is not configured warning

  • Prefernces ⇒ Editor ⇒ Inspections ⇒ SQL ⇒ SQL dialect detection。
  • Uncheck it, remove this check, and then click the  OK button.


At this point there is still a green background color



Remove the background color of "Injected Language"

  • Prefernces ⇒ Editor ⇒ Colors & Fonts ⇒ General ⇒ Code ⇒ Injected language fragment ⇒ Background。
  • Uncheck it and click the  OK button.


The article is reproduced from: https://blog.csdn.net/aubdiy/article/details/68485336

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325964218&siteId=291194637