第一步:点击 setting 第二步:点击Editor下的File Types 第三步:编辑,在后面添加 .iml;.idea;.gitignore;.sh;.classpath;.project;*.settings;target;logs; 第四步: 点击 ok,搞定。