Support Jetty 10

Closes gh-24886
This commit is contained in:
Andy Wilkinson
2021-02-04 14:54:34 +00:00
parent a95e93a8a9
commit df5f59127a
11 changed files with 175 additions and 45 deletions

View File

@@ -59,6 +59,9 @@ Spring Boot supports the following embedded servlet containers:
| Jetty 9.4
| 3.1
| Jetty 10.0
| 4.0
| Undertow 2.0
| 4.0
|===

View File

@@ -451,7 +451,8 @@ The following Maven example shows how to exclude Tomcat and include Jetty for Sp
</dependency>
----
NOTE: The version of the Servlet API has been overridden as, unlike Tomcat 9 and Undertow 2.0, Jetty 9.4 does not support Servlet 4.0.
NOTE: The version of the Servlet API has been overridden as, unlike Tomcat 9 and Undertow 2, Jetty 9.4 does not support Servlet 4.0.
If you wish to use Jetty 10, which does support Servlet 4.0, override the `jetty.version` property rather than the `servlet-api.version` property.
The following Gradle example shows how to use Undertow in place of Reactor Netty for Spring WebFlux: