spring-cloud-gateway版本和springboot版本不匹配

在搭建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.buildConnectionProvider(GatewayAutoConfiguration.java:798)

The following method did not exist:

reactor.netty.resources.ConnectionProviderBuilder.evictInBackground(Ljava/time/Duration;)Lreactor/netty/resources/ConnectionProviderConnectionPoolSpec;

The method's class, reactor.netty.resources.ConnectionProvider$Builder, is available from the following locations:

jar:file:/D:/apache-maven-3.3.9/repository/io/projectreactor/netty/reactor-netty/0.9.12.RELEASE/reactor-netty-0.9.12.RELEASE.jar!/reactor/netty/resources/ConnectionProvider$Builder.class

The class hierarchy was loaded from the following locations:

reactor.netty.resources.ConnectionProvider.Builder: file:/D:/apache-maven-3.3.9/repository/io/projectreactor/netty/reactor-netty/0.9.12.RELEASE/reactor-netty-0.9.12.RELEASE.jar

reactor.netty.resources.ConnectionProvider.ConnectionPoolSpec: file:/D:/apache-maven-3.3.9/repository/io/projectreactor/netty/reactor-netty/0.9.12.RELEASE/reactor-netty-0.9.12.RELEASE.jar

Action:

Correct the classpath of your application so that it contains a single, compatible version of reactor.netty.resources.ConnectionProvider$Builder

这个看就是依赖导致的,应该是springBoot的和spring cloud版本不符导致的。我现在错误的版本是:Spring-boot是2.3.0.RELEASE,Spring-cloud是Hoxton.SR12这是不符合的。

改成:Spring-boot是2.3.0.RELEASE,Spring-cloud是Hoxton.SR8 或者 Spring-boot是2.3.12.RELEASE,Spring-cloud是Hoxton.SR12就可以了

相关推荐
ovensi20 小时前
Docker+NestJS+ELK:从零搭建全链路日志监控系统
后端·nestjs
武子康21 小时前
大数据-184 Elasticsearch Doc Values 机制详解:列式存储如何支撑排序/聚合/脚本
大数据·后端·elasticsearch
四月__21 小时前
http八股
后端
沐森21 小时前
rust并发
后端
喵个咪21 小时前
开箱即用的 GoWind Admin|风行,企业级前后端一体中后台框架:Casbin集成指南
后端·go
墨守城规21 小时前
FutureTask源码分析
后端
梨子同志21 小时前
Java 基础语法详解
后端
bcbnb21 小时前
详细教程:iOS应用中Swift代码混淆步骤与工具推荐
后端
气π21 小时前
【JavaWeb】——(若依 + AI)-基础学习笔记
java·spring boot·笔记·学习·java-ee·mybatis·ruoyi
expect7g21 小时前
Paimon源码解读 -- Compaction-8.专用压缩任务
大数据·后端·flink