微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

springcloud 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:675)

The following method did not exist:

    reactor.netty.resources.ConnectionProvider.elastic(Ljava/lang/String;Ljava/time/Duration;Ljava/time/Duration;)Lreactor/netty/resources/ConnectionProvider;

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

    jar:file:/D:/Devtools/maven/repository/io/projectreactor/netty/reactor-netty/0.9.1.RELEASE/reactor-netty-0.9.1.RELEASE.jar!/reactor/netty/resources/ConnectionProvider.class

It was loaded from the following location:

    file:/D:/Devtools/maven/repository/io/projectreactor/netty/reactor-netty/0.9.1.RELEASE/reactor-netty-0.9.1.RELEASE.jar


Action:

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


Process finished with exit code 1

修改版本前
<properties>
  <spring-boot.version>2.2.3</spring-boot.version>
<spring-cloud.version>Hoxton.SR3</spring-cloud.version>
<com-alibaba-cloud.version>2.2.1.RELEASE</com-alibaba-cloud.version>
</properties>
修改
<properties>
  <spring-boot.version>2.2.1</spring-boot.version>
<spring-cloud.version>Hoxton.SR1</spring-cloud.version>
<com-alibaba-cloud.version>2.2.1.RELEASE</com-alibaba-cloud.version>
</properties>

参考:https://www.jianshu.com/p/f47ebd1eaa51
 

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐