目录
1.1、SpringBoot支持的Servlet种类及其切换
2.2、实现 WebServerFactoryCustomizer
2.3、ConfigurableServletWebServerFactory
1、切换嵌入式Servlet容器
1.1、SpringBoot支持的Servlet种类及其切换
1)默认支持的webServer:Tomcat、Jrtty、Undertow
2)切换服务器
<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>