一、点击 File -> Settings 二、点击 Editor -> Inspections,找到图中所示的SQL,去掉下面的No data sources configured和SQL dialect detection的勾选 三、点击 Editor-> Colors & Fonts -> General ,打开Code,去掉Background的勾选