pom.xml中war错误的方法 在pom.xml文件的后面后面加入此段代码 org.apache.maven.plugins maven-compiler-plugin 3.0 true false 1.7 1.7 true