spring boot war

<dependency>

  <groupId>org.springframework.boot</groupId>

  <artifactId>spring-boot-starter-tomcat</artifactId>  

  <scope>provided</scope>

</dependency>

 

替换成

 

<dependency>

  <groupId>javax.servlet</groupId>

  <artifactId>javax.servlet-api</artifactId>  

  <scope>provided</scope>

</dependency>

 

<dependency>

  <groupId>org.apache.tomcat</groupId>

  <artifactId>tomcat-servlet-api</artifactId>  

  <scope>provided</scope>

</dependency>

 

mvn clean package -Dmaven.test.skip=true

 

posted on 2019-05-20 11:05  XZhe  阅读(206)  评论(0编辑  收藏  举报