前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >springcloud Hoxton.SR11集成gateway网关 坑!!!

springcloud Hoxton.SR11集成gateway网关 坑!!!

作者头像
用户5899361
发布2021-06-08 21:40:40
2.1K0
发布2021-06-08 21:40:40
举报
文章被收录于专栏:学习java的小白学习java的小白

一看就会的超详细教程:SpringBoot整合MybatisPlus!>>>

这里根据官网新推出的springcloud Hoxton.SR11版本去集成gateway的一个坑

首先先写版本号:

框架

版本号

springcloud

Hoxton.SR11

springboot

2.3.0

根据官网推荐,springcloud这个版本支持的springboot是2.3.0。

在集成gateway网关时会报错如下:

代码语言:javascript
复制
***************************
APPLICATION FAILED TO START
***************************

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.ConnectionProvider$Builder.evictInBackground(Ljava/time/Duration;)Lreactor/netty/resources/ConnectionProvider$ConnectionPoolSpec;

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

    jar:file:/D:/repo/io/projectreactor/netty/reactor-netty/0.9.7.RELEASE/reactor-netty-0.9.7.RELEASE.jar!/reactor/netty/resources/ConnectionProvider$Builder.class

It was loaded from the following location:

    file:/D:/repo/io/projectreactor/netty/reactor-netty/0.9.7.RELEASE/reactor-netty-0.9.7.RELEASE.jar


Action:

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

从报错信息中可以看到,我们报错因为以来冲突。所以将reactor-netty的包版本降低,故pom中添加如下依赖。

代码语言:javascript
复制
        <dependency>
            <groupId>io.projectreactor.netty</groupId>
            <artifactId>reactor-netty</artifactId>
            <version>0.9.4.RELEASE</version>
        </dependency>
本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档