Is there anyone who used spring-webflux with netty (http/2)?
Spring Documentation says:
You can enable HTTP/2 support in your Spring Boot application with the
server.http2.enabled
configuration property. This support depends on the chosen web server and the application environment, since that protocol is not supported out-of-the-box by JDK8. Spring Boot does not support h2c, the cleartext version of the HTTP/2 protocol. So you must configure SSL first.
The flag server.http2.enabled
is not working for me.
I'm using:
- JDK8
- org.springframework.boot:spring-boot-starter-parent:2.0.2.RELEASE
- Netty 4.1.24.Final
Please take a look at my config:
HTTPS works as well. But the protocol is still the same (http/1.1)
Is this a problem with ALPN? Should I upgrade my app to JDK10? I will appreciate any suggestions. Thanks.
https://docs.spring.io/spring/docs/current/spring-framework-reference/web-reactive.html#webflux-http2
Seems, I found the answer. Webflux Docs:
Currently Spring WebFlux does not support HTTP/2 with Netty. There is also no support for pushing resources programmatically to the client.