热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

SpringCloudHoxton.SR1gateway与reactornetty0.9.3.RELEASE不兼容

问题现象在启动SpringCloudHoxton.SR1gateway服务的时候无法启动,错误现象如下:**********************

问题现象

在启动 Spring Cloud Hoxton.SR1 gateway 服务的时候无法启动,错误现象如下:

***************************
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.gatewayHttpClient(GatewayAutoConfiguration.java:597)The following method did not exist:reactor.netty.resources.ConnectionProvider.elastic(Ljava/lang/String;Ljava/time/Duration;)Lreactor/netty/resources/ConnectionProvider;The method's class, reactor.netty.resources.ConnectionProvider, is available from the following locations:jar:file:/Users/lengleng/env/repository/io/projectreactor/netty/reactor-netty/0.9.3.RELEASE/reactor-netty-0.9.3.RELEASE.jar!/reactor/netty/resources/ConnectionProvider.class
It was loaded from the following location:file:/Users/lengleng/env/repository/io/projectreactor/netty/reactor-netty/0.9.3.RELEASE/reactor-netty-0.9.3.RELEASE.jar
Action:
Correct the classpath of your application so that it contains a single, compatible version of reactor.netty.resources.ConnectionProvider

原因是版本不兼容问题

修改方法

org.springframeworkspring-webflux5.2.7.RELEASE

io.projectreactor.nettyreactor-netty0.9.8.RELEASE

参考博客:https://blog.csdn.net/weixin_44216706/article/details/107047281


推荐阅读
author-avatar
手机用户2602913291
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有