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就可以了

相关推荐
Ting-yu5 分钟前
SpringCloud快速入门(7)---- 数据隔离
spring boot·spring·spring cloud
独自归家的兔1 小时前
OCPP 1.6 协议详解:GetLocalListVersion 获取本地列表版本指令
java·后端·物联网·spring·ocpp1.6
无人不xiao3 小时前
springBoot 实现 接口进度条
java·spring boot·后端
IT_陈寒3 小时前
Redis缓存击穿把我坑惨了,原来这样解决才靠谱
前端·人工智能·后端
smileNicky3 小时前
Docker 部署 SpringBoot 项目超详细教程
spring boot·docker·容器
Lee川4 小时前
RAG 知识库问答:从概念到代码的完整实现
前端·人工智能·后端
咪的Coding5 小时前
为什么在 DeepSeek 输入 <think>,它竟吐出别人的“记忆碎片”!?
后端·deepseek
HLAIA光子5 小时前
这些Spring Boot写法已经过时了!
spring boot·后端
i220818 Faiz Ul5 小时前
宠物猫之猫咖管理系统|基于java + vue宠物猫之猫咖管理系统(源码+数据库+文档)
java·数据库·vue.js·spring boot·论文·毕设·宠物猫之猫咖管理系统