[springboot] Servlet container switches to jetty or undertow

insert image description here

This section introduces you to switch the default Tomcat container of SpringBoot to jetty or undertow. Although you can use jetty or undertow to replace tomcat, the author does not recommend doing so, but it is still necessary to learn the NIO model of jetty and undertow, which is also the IO model for most web application middleware to provide network services.
Maybe in some scenarios, some indicators of the test results of jetty or undertow will be better than tomcat. However, in terms of comprehensive conditions, tomcat is excellent in terms of performance, stability, and resource utilization.
I remember that there was such a star called Kaka before. In his prime, people often described him like this: he is not as handsome as he is as good as he is, and as handsome as he is. I think the evaluation of tomcat is also applicable to this sentence: running faster than it is not as stable as it is, and the stability is better than it is not as fast as it is.

Servlet container switches to jetty or undertow

1. Replace tomcat

SpringBoot uses tomc by default

Guess you like

Origin blog.csdn.net/hanxiaotongtong/article/details/122892944