你可以使用server.http2.enabled配置属性,在Spring Boot应用程序中启用HTTP/2支持。这项支持取决于所选的web服务器和应用程序环境,因为JDK8不支持那个协议开箱即用。
server.http2.enabled
注 Spring Boot不支持h2c,即明文版本的HTTP/2协议。因此必须首先配置SSLarrow-up-right。
h2c
最后更新于6年前