版本
<!-- SpringBoot版本 2.2.3.RELEASE -->
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.2.3.RELEASE</version>
<relativePath/>
</parent>
<!-- SpringCloud版本 2.2.3.RELEASE -->
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-alibaba-dependencies</artifactId>
<version>2.2.3.RELEASE</version>
<type>pom</type>
<scope>import</scope>
</dependency>
场景
SpringCloud整合Gateway时,启动Gateway报错

原因
报错原因是在GatewayAutoConfiguration.java中的reactorNettyWebSocketClient方法中调用了ReactorNettyWebSocketClient.setHandlePing方法,但该方法在SpringBoot2.2.3.RELEASE中的spring-webflux版本是5.2.3RELEASE,并没有此方法。
解决措施
升级SpringBoot版本为2.2.5.RELEASE即可

0/2000未登录:点发表会先打开登录弹窗,写好的内容不会丢。