1、在setting中输入:inspection --> SQL
2、去掉背景颜色,Apply即可
Intellij IDEA 去掉Mapper文件中的背景
原文:http://www.cnblogs.com/tongxuping/p/7580968.html