Springboot打成war包后在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>

猜你喜欢

转载自blog.csdn.net/weixin_39102174/article/details/90615308