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

相关推荐
fox_lht1 小时前
15.3.改进我们之前的输入、输出项目
开发语言·后端·学习·rust
大鸡腿同学2 小时前
用 AI 肝了一个星期的智能客服助手,看看怎么个事
后端
IT_陈寒2 小时前
Python的os.path.join居然能这么坑?
前端·人工智能·后端
张忠琳2 小时前
【Go 1.26.4】Golang Channel 深度解析
开发语言·后端·golang
Rain5092 小时前
2.1 Nest.js 项目初始化与模块化架构
开发语言·前端·javascript·后端·架构·数据分析·node.js
cjp5602 小时前
009. ASP.NET WEB API 用户关联esp32设备
前端·后端·asp.net
贺国亚2 小时前
Text-to-SQL与Analytics-Agent
后端
一只叫煤球的猫3 小时前
ThreadForge 源码解读二:一个 Task 从 submit 到完成,内部到底发生了什么?
java·后端·面试
苏三说技术3 小时前
AgentScope Java 2.0 正式发布了!
后端