springboot迁移:内嵌Server恢复为默认的Tomcat

This commit is contained in:
datagear 2020-11-08 11:54:20 +08:00
parent 6d828660be
commit 6decf90872
1 changed files with 3 additions and 2 deletions

View File

@ -61,16 +61,17 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<exclusions>
<!-- 后面重新引入并设为provided避免war包中包含内嵌Server库 -->
<exclusion>
<artifactId>spring-boot-starter-tomcat</artifactId>
<groupId>org.springframework.boot</groupId>
</exclusion>
</exclusions>
</dependency>
<!-- cometd依赖Jetty库所以内嵌Server也一并改为Jetty -->
<dependency>
<artifactId>spring-boot-starter-tomcat</artifactId>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-jetty</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>