在SpringBoot框架中,我们使用最多的是Tomcat,这是SpringBoot默认的容器技术,而且是内嵌式的Tomcat。同时,SpringBoot也支持Undertow容器,我们可以很方便的用Undertow替换Tomcat,而Undertow的性能和内存使用方面都优于Tomcat,那我们如何使用Undertow技术呢?本文将为大家细细讲解。
SpringBoot中的Tomcat容器

SpringBoot设置Undertow


Tomcat与Undertow的优劣对比


QPS测试结果对比:
Tomcat

Undertow

内存使用对比:
Tomcat

Undertow

最后
转自:https://blog.csdn.net/emprere/article/details/125567978