spring Boot 项目的打包方式设置为 war。
[url]http://blog.csdn.net/u013378306/article/details/54693208#t1[/url]
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
[color=red]<exclusions>
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
</exclusion>
</exclusions>
[/color] </dependency>
[url]http://blog.csdn.net/u013378306/article/details/54693208#t1[/url]
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
[color=red]<exclusions>
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
</exclusion>
</exclusions>
[/color] </dependency>