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

相关推荐
程序员大金17 分钟前
基于SSM+Vue+MySQL的酒店管理系统
前端·vue.js·后端·mysql·spring·tomcat·mybatis
程序员大金27 分钟前
基于SpringBoot的旅游管理系统
java·vue.js·spring boot·后端·mysql·spring·旅游
爱上语文39 分钟前
Springboot三层架构
java·开发语言·spring boot·spring·架构
Pandaconda1 小时前
【计算机网络 - 基础问题】每日 3 题(十)
开发语言·经验分享·笔记·后端·计算机网络·面试·职场和发展
码java的秃头阿姨1 小时前
SpringBoot设置mysql的ssl连接
spring boot·mysql·ssl
程序员大金1 小时前
基于SpringBoot+Vue+MySQL的养老院管理系统
java·vue.js·spring boot·vscode·后端·mysql·vim
customer082 小时前
【开源免费】基于SpringBoot+Vue.JS网上购物商城(JAVA毕业设计)
java·vue.js·spring boot·后端·开源
Ylucius2 小时前
JavaScript 与 Java 的继承有何区别?-----原型继承,单继承有何联系?
java·开发语言·前端·javascript·后端·学习
IT学长编程2 小时前
计算机毕业设计 沉浸式戏曲文化体验系统的设计与实现 Java实战项目 附源码+文档+视频讲解
java·spring boot·毕业设计·毕业论文·计算机毕业设计论文·计算机毕业设计选题·计算机毕业设计开题报告