@@ -20,7 +20,9 @@ https://github.com/spring-projects/spring-framework/tree/master/spring-webflux[s
20
20
This section covers Spring Web MVC. The <<web-reactive.adoc#spring-web-reactive,next section>>
21
21
covers Spring WebFlux.
22
22
23
-
23
+ For baseline information and compatibility with Servlet container and Java EE version
24
+ ranges please visit the Spring Framework
25
+ https://github.com/spring-projects/spring-framework/wiki/Spring-Framework-Versions[Wiki].
24
26
25
27
26
28
[[mvc-servlet]]
@@ -1555,6 +1557,8 @@ requests are allowed to access a session concurrently.
1555
1557
1556
1558
|`javax.servlet.http.PushBuilder`
1557
1559
|Servlet 4.0 push builder API for programmatic HTTP/2 resource pushes.
1560
+ Note that per Servlet spec, the injected `PushBuilder` instance can be null if the client
1561
+ does not support that HTTP/2 feature.
1558
1562
1559
1563
|`java.security.Principal`
1560
1564
|Currently authenticated user; possibly a specific `Principal` implementation class if known.
@@ -4808,23 +4812,15 @@ include::webmvc-view.adoc[leveloffset=+1]
4808
4812
4809
4813
4810
4814
[[mvc-http2]]
4811
- == HTTP/2 support
4812
-
4813
-
4814
- [[mvc-http2-servlet4]]
4815
- === Servlet 4 support
4816
-
4817
- Spring MVC supports the Servlet 4 API; of course, the chosen Servlet container must support
4818
- that API in the first place.
4819
-
4820
- It is now possible to inject a `javax.servlet.http.PushBuilder`
4821
- as a Controller method argument for pushing HTTP/2 resources programmatically.
4822
- Note that per Servlet spec, the injected `PushBuilder` instance can be null if the client
4823
- does not support that HTTP/2 feature. See <<mvc-ann-arguments>>.
4824
-
4825
- [[mvc-http2-container]]
4826
- === Container configuration
4827
-
4828
- For more information on how to configure your Servlet container for HTTP/2, please check
4829
- out the https://github.com/spring-projects/spring-framework/wiki/HTTP-2-support[dedicated
4830
- wiki page on HTTP/2 support].
4815
+ == HTTP/2
4816
+ [.small]#<<web-reactive.adoc#webflux-http2,Same in Spring WebFlux>>#
4817
+
4818
+ Servlet 4 containers are required to support HTTP/2 and Spring Framework 5 is compatible
4819
+ with Servlet API 4. From a programming model perspective there is nothing specific that
4820
+ applications need to do. However there are considerations related to server configuration.
4821
+ For more details please check out the
4822
+ https://github.com/spring-projects/spring-framework/wiki/HTTP-2-support[HTTP/2 wiki page].
4823
+
4824
+ The Servlet API does expose one construct related to HTTP/2. The
4825
+ `javax.servlet.http.PushBuilder` can used to proactively push resources to clients and it
4826
+ is supported as a <<mvc-ann-arguments,method argument>> to `@RequestMapping` methods.
0 commit comments