org.springframework.web.reactive.socket.client.ReactorNettyWebSocketClient.setHandlePing(Z)V
springCloud gateway 错误记录
·
引入gateway网关的时候报错记录
Description:
An attempt was made to call a method that does not exist. The attempt was made from the following location:
org.springframework.cloud.gateway.config.GatewayAutoConfiguration$NettyConfiguration.reactorNettyWebSocketClient(GatewayAutoConfiguration.java:738)
The following method did not exist:
org.springframework.web.reactive.socket.client.ReactorNettyWebSocketClient.setHandlePing(Z)V
The method’s class, org.springframework.web.reactive.socket.client.ReactorNettyWebSocketClient, is available from the following locations:
jar:file:/E:/JAVA/Maven/erpository-3.5.3/org/springframework/spring-webflux/5.2.3.RELEASE/spring-webflux-5.2.3.RELEASE.jar!/org/springframework/web/reactive/socket/client/ReactorNettyWebSocketClient.class
It was loaded from the following location:
file:/E:/JAVA/Maven/erpository-3.5.3/org/springframework/spring-webflux/5.2.3.RELEASE/spring-webflux-5.2.3.RELEASE.jar
缺少spring-webflux依赖
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webflux</artifactId>
<version>5.2.4.RELEASE</version>
</dependency>
这是我在学习微服务的时候遇到的问题,希望对你们有帮助!
更多推荐
所有评论(0)