如何生成war包
pom.xml
<packaging>war</packaging>
引入tomcat
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
<scope>provided</scope>
</dependency>
放到tomcat下 webapp里面
去bin下启动tomcat :