1、使用其它Servlet容器 之前使用 tomcat , SpringBoot支持: Jetty(适合开发长链接的应用:比如说聊天点对点,tomcat 就不合适)
Undertow(不支持jsp,但它是高性能的,非阻塞的servlet容器,并发性能特别好)
Tomcat(默认使用)
想用哪个都行,SpringBoot 默认支持Tomcat、Jetty和Undertow切换 |
2、替换为其它嵌入式 Servlet 容器
|
本文是SpringBoot学习笔记的第21篇,主要探讨SpringBoot中嵌入式Servlet容器的使用,包括Tomcat、Jetty等,阐述它们如何简化Web应用的部署和配置。
1、使用其它Servlet容器 之前使用 tomcat , SpringBoot支持: Jetty(适合开发长链接的应用:比如说聊天点对点,tomcat 就不合适)
Undertow(不支持jsp,但它是高性能的,非阻塞的servlet容器,并发性能特别好)
Tomcat(默认使用)
想用哪个都行,SpringBoot 默认支持Tomcat、Jetty和Undertow切换 |
2、替换为其它嵌入式 Servlet 容器
|
789
1386
1089
1070
5万+
2万+

被折叠的 条评论
为什么被折叠?