Spring Webflux反​​应式Netty H2c HTTP客户端引发异常

时间:2019-01-25 20:51:49

标签: spring netty webclient

当我使用Spring Webflux反​​应式Netty H2C HTTP客户端调用H2C服务器时。发生异常:

java.lang.UnsupportedOperationException: unsupported message type: DefaultHttpRequest (expected: ByteBuf, DefaultFileRegion)

同一服务器可用于码头h2c http客户端。

HttpClient httpClient = HttpClient.create().protocol(HttpProtocol.H2C);
WebClient webClient = WebClient.builder().clientConnector(httpConnector)
        .build();
...

0 个答案:

没有答案