connector that does not support ALPN.

详细报错:

08:04:28.877 [main] ERROR o.a.c.h.Http11NioProtocol - [log,173] - The upgrade handler [org.apache.coyote.http2.Http2Protocol] for [h2] only supports upgrade via ALPN but has been configured for the ["https-jsse-nio-443"] connector that does not support ALPN.

解決办法:

The spring-boot-webflux-starter is using by default Reactor Netty as a server. Reactor Netty can be configured for HTTP/2 using the JDK support with JDK 9 or later. For JDK 8 environments, or for optimal runtime performance, this server also supports HTTP/2 with native libraries. To enable that, your application needs to have an additional dependency.

Spring Boot manages the version for the io.netty:netty-tcnative-boringssl-static "uber jar", containing native libraries for all platforms. Developers can choose to import only the required dependencies using a classifier (see the Netty official documentation).

详细操作:

https://blog.csdn.net/weixin_30307921/article/details/94907474

参考:

 

https://docs.spring.io/spring-boot/docs/current/reference/html/howto.html#howto-configure-http2-tomcat

 

本文原创,商业转载请联系作者获得授权,非商业转载请注明出处。

评论

发送评论 编辑评论


                        

后端技术分类热门文章

标签热门文章排行

☛免责声明 ☛本站使用教程
Theme Argon With Ry-Plus By 清欢
我的第16391位朋友,历经92684次回眸才与你相遇