IDEA——xml文件自动转成txt文件,不进行编译 问题:创建UserMapper.xml文件时自动转成Text格式;创建CourseMapper.xml又是xml格式。 //将UserMapper.xml设置成Text格式了。虽然我并没有 解决: File——>Settings——>File Types, Recognized File Types中找到Text,点击。 在Registered Patterns中找到UserMapper.xml。消去。