社区微信群开通啦,扫一扫抢先加入社区官方微信群
社区微信群
1、排除tomcat默认依赖
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<exclusions>
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
</exclusion>
</exclusions>
</dependency>
2、添加jetty依赖
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-jetty</artifactId>
</dependency>
服务器的信息配置项参考:
autoconfig下的
如果觉得我的文章对您有用,请随意打赏。你的支持将鼓励我继续创作!