首先我们先查看Spring Boot中支持几种嵌入式容器

选中ConfigurableWebServerFactory类,点击ctrl+h键,查看
在这里插入图片描述

切换到jetty容器步骤如下

1.排除掉tomcat

在这里插入图片描述
2.添加jetty坐标

		<dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-jetty</artifactId>
        </dependency>

3.启动
在这里插入图片描述
切换成功

posted on 2020-12-19 17:51  凸凸大军的一员  阅读(41)  评论(0编辑  收藏  举报