> For the complete documentation index, see [llms.txt](https://jack80342.gitbook.io/spring-boot/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://jack80342.gitbook.io/spring-boot/ix.-how-to-guides/75.-embedded-web-servers/75.8-configure-http2.md).

# 75.8 配置HTTP/2

你可以使用`server.http2.enabled`配置属性，在Spring Boot应用程序中启用HTTP/2支持。这项支持取决于所选的web服务器和应用程序环境，因为JDK8不支持那个协议开箱即用。

**注** Spring Boot不支持`h2c`，即明文版本的HTTP/2协议。因此必须[首先配置SSL](https://docs.spring.io/spring-boot/docs/2.0.0.RELEASE/reference/htmlsingle/#howto-configure-ssl)。
