开发启动 gradle bootRun 打包 gradle bootJar gradle bootWar jar包方式部署&启动 java -jar spring-boot-demo-0.0.1-SNAPSHOT.jar war包方式tomcat部署 <Context path="/demo" docBase="D:\project\spring-boot-demo-0.0.1-SNAPSHOT.war"></Context>