- 1 配置文件嵌入tomcat插件
-
<!-- 移除嵌入式tomcat插件 --> <exclusions> <exclusion> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-tomcat</artifactId> </exclusion> </exclusions>
3. 配置IDEA 生成war方式
4. 构建项目,生成war包
<!-- 移除嵌入式tomcat插件 -->
<exclusions>
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
</exclusion>
</exclusions>
3. 配置IDEA 生成war方式
4. 构建项目,生成war包