tomcat 支持http2.0吗?
首先,HTTP2.0协议一级公布,只是推广和各个中间件软件的适配需要时间。
stackoverflow里“Tomcat support for HTTP/2.0?”,jetty的源码码作者做了如下的总结:
I'm the HTTP/2 implementer in Jetty, and I watch out other projects implementing HTTP/2.Tomcat's Mark Thomas has outlined support for HTTP/2 for Tomcat 9.
Considering that Servlet 4.0 is going to have as a target HTTP/2 support, and that HTTP/2 support requires ALPN support in the JDK (which also I am involved in), and that ALPN support in the JDK is scheduled for JDK 9, it is probably going to be a long time before all that materializes.However, be aware that other Servlet Containers already provide HTTP/2 support.
Jetty 9.3.0 has full, robust, support for HTTP/2, client and server. We have been running HTTP/2 on our own website for many months now, and we consider HTTP/2 support production ready.
Jetty's HTTP/2 Push APIs are being considered for inclusion in Servlet 4.0. HTTP/2 Push is already available to applications deployed to Jetty in a transparent way (via a Servlet Filter).
Undertow also has an implementation for HTTP/2.
Netty also has one, but it's not based on the Servlet APIs.