Update documentation about jetty http2 dependency

See gh-38632
This commit is contained in:
Arthur Gavlyukovskiy 2023-12-01 23:30:55 +01:00 committed by Moritz Halbritter
parent 89a0ac3018
commit 829bec7602
2 changed files with 2 additions and 2 deletions

View File

@ -221,7 +221,7 @@ More on this in the {tomcat-docs}/apr.html[official Tomcat documentation].
[[howto.webserver.configure-http2.jetty]]
==== HTTP/2 With Jetty
For HTTP/2 support, Jetty requires the additional `org.eclipse.jetty.http2:http2-server` dependency.
For HTTP/2 support, Jetty requires the additional `org.eclipse.jetty.http2:jetty-http2-server` dependency.
To use `h2c` no other dependencies are required.
To use `h2`, you also need to choose one of the following dependencies, depending on your deployment:

View File

@ -96,7 +96,7 @@ class SslServerCustomizer implements JettyServerCustomizer {
Assert.state(isJettyAlpnPresent(),
() -> "An 'org.eclipse.jetty:jetty-alpn-*-server' dependency is required for HTTP/2 support.");
Assert.state(isJettyHttp2Present(),
() -> "The 'org.eclipse.jetty.http2:http2-server' dependency is required for HTTP/2 support.");
() -> "The 'org.eclipse.jetty.http2:jetty-http2-server' dependency is required for HTTP/2 support.");
return createHttp2ServerConnector(config, sslContextFactory, server);
}