springboot项目打成war包在tomcat中运行方法

去除内嵌tomcat

在springboot启动依赖中去除内嵌tomcat

 

复制代码
        <dependency>
		            <groupId>org.springframework.boot</groupId>
		            <artifactId>spring-boot-starter-web</artifactId>
		            <!-- 移除嵌入式tomcat插件 -->
		            <exclusions>
		                <exclusion>
		                    <groupId>org.springframework.boot</groupId>
		                    <artifactId>spring-boot-starter-tomcat</artifactId>
		                </exclusion>
		            </exclusions>
		        </dependency>
复制代码
 
posted @ 2020-08-21 09:55  shuguangI  阅读(78)  评论(0)    收藏  举报