提交 bf602530 编写于 作者: B Brian Clozel

Start documenting HTTP/2 support

A new HTTP/2 support section has been added in the Spring MVC
documentation. Also, a dedicated wiki page is created for specific
container support information.

Issue: SPR-15821
上级 6457a155
......@@ -4804,3 +4804,27 @@ detected through a `<component scan/>` declaration.
include::webmvc-view.adoc[leveloffset=+1]
[[mvc-http2]]
== HTTP/2 support
[[mvc-http2-servlet4]]
=== Servlet 4 support
Spring MVC supports the Servlet 4 API; of course, the chosen Servlet container must support
that API in the first place.
It is now possible to inject a `javax.servlet.http.PushBuilder`
as a Controller method argument for pushing HTTP/2 resources programmatically.
Note that per Servlet spec, the injected `PushBuilder` instance can be null if the client
does not support that HTTP/2 feature. See <<mvc-ann-arguments>>.
[[mvc-http2-container]]
=== Container configuration
For more information on how to configure your Servlet container for HTTP/2, please check
out the https://github.com/spring-projects/spring-framework/wiki/HTTP-2-support[dedicated
wiki page on HTTP/2 support].
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册