一 首先创建 maven web 工程暂无二 在maven 中添加嵌入式tomcat配置build plugins plugin artifactIdmaven-compiler-plugin/artifactId version2.3.2/version configuration source1.8/source target1.8/target