[已解决] OpenFeign 调用服务提供者出现的BUG

java.lang.AbstractMethodError: Receiver class org.springframework.cloud.netflix.ribbon.RibbonLoadBalancerClient does not define or inherit an implementation of the resolved method 'abstract org.springframework.cloud.client.ServiceInstance choose(java.lang.String, org.springframework.cloud.client.loadbalancer.Request)' of interface org.springframework.cloud.client.loadbalancer.ServiceInstanceChooser.
springboot:2.2.2
springcloud:2021.0.2
服务注册中心:Eureka
负载均衡:Ribbon
服务调用:OpenFeign 3.1.2

原因:spring-cloud-loadbalancer 和 ribbon-balancer 冲突,去除其中一个

posted @ 2022-09-08 20:33  HypoPine  阅读(768)  评论(0编辑  收藏  举报