//在pom.xml文件下添加<tomcat.version>9.0.35tomcat.version> 既可 <properties> <java.version>1.8java.version> <tomcat.version>9.0.35tomcat.version> properties>