spring boot 中容器 Jetty、Tomcat、Undertow

spring boot 中依赖tomcat 

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

web 中默认对 tomcat 依赖
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
<version>2.1.2.RELEASE</version>
<scope>compile</scope>
</dependency>

spring boot 中 依赖 jetty

去除tomcat
<
dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-jetty</artifactId> <version>2.1.4.RELEASE</version> </dependency>

spring boot 中依赖 Undertow

 去除tomcat
<
dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-undertow</artifactId> <version>2.1.4.RELEASE</version> </dependency>

不同容器性能参考:https://www.cnblogs.com/duanxz/p/9337022.html

猜你喜欢

转载自www.cnblogs.com/baizhuang/p/11390232.html