@通过网关连接renren-fast时候报的错

Error creating bean with name ‘ribbonLoadBalancingHttpClient’

通过spring gateway 网关把请求分配给renren-fast的时候出现了以下错误。

2021-01-06 22:47:02.793 ERROR 14024 --- [ctor-http-nio-2] a.w.r.e.AbstractErrorWebExceptionHandler : [b41c453c] 500 Server Error for HTTP GET "/api/captcha.jpg?uuid=197cc4fb-3695-43cd-8293-8cf4dc31b91f"

couse by 1

Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'ribbonLoadBalancer' defined in org.springframework.cloud.netflix.ribbon.RibbonClientConfiguration: Unsatisfied dependency expressed through method 'ribbonLoadBalancer' parameter 2; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ribbonServerListFilter' defined in org.springframework.cloud.netflix.ribbon.RibbonClientConfiguration: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.netflix.loadbalancer.ServerListFilter]: Factory method 'ribbonServerListFilter' threw exception; nested exception is java.lang.NoClassDefFoundError: com/netflix/servo/monitor/Monitors

couse by 2

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ribbonServerListFilter' defined in org.springframework.cloud.netflix.ribbon.RibbonClientConfiguration: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.netflix.loadbalancer.ServerListFilter]: Factory method 'ribbonServerListFilter' threw exception; nested exception is java.lang.NoClassDefFoundError: com/netflix/servo/monitor/Monitors

根本没有这个东西

所以参考
链接: link.的博客gateway ribbon 负载均衡这块,发现自己的pom文件里没有如下依赖

<dependency><groupId>org.springframework.cloud</groupId><artifactId>spring-cloud-starter-netflix-ribbon</artifactId><version>2.1.0.RELEASE</version>
</dependency>

这个加上,重新reload Maven 重跑gateway

原先获取图片的地方由500 变成了 200 成功了

Error creating bean with name ‘ribbonLoadBalancingHttpClient‘相关推荐

  1. 使用JPA进行update操作时,报org.springframework.beans.factory.BeanCreationException: Error creating bean with

    使用JPA进行update操作时,报org.springframework.beans.factory.BeanCreationException: Error creating bean with ...

  2. org.springframework.beans.factory.BeanCreationException: Error creating bean with name

    严重: Exception sending context initialized event to listener instance of class org.springframework.we ...

  3. Error creating bean with name 'org.springframework.amqp.rabbit.config.ListenerContainerFactoryBean#0

    Spring 整合rabbitmq 出现错误 严重: Exception sending context initialized event to listener instance of class ...

  4. Error creating bean with name 'multipleEntityManagerFactory' defined in class

    2019独角兽企业重金招聘Python工程师标准>>> Error creating bean with name 'multipleEntityManagerFactory' de ...

  5. springboot 启动的时候报错 Error creating bean with name 'solrClient'

    springboot 启动的时候报错: org.springframework.beans.factory.BeanCreationException: Error creating bean wit ...

  6. Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 't

    1.  今天在做redis的时候,爆出这样的错误: Caused by: org.springframework.beans.factory.BeanCreationException: Error ...

  7. 启动springboot报错Error creating bean with name 'dataSource' defined in class path resource

    2019独角兽企业重金招聘Python工程师标准>>> 启动springboot报错Error creating bean with name 'dataSource' define ...

  8. Meavn 搭建项目遇到Error creating bean with name 'sessionFactory' defined in class path resource...

    Error creating bean with name 'sessionFactory' defined in class path resource .nested exception is j ...

  9. BeanCreationException: Error creating bean with name 'dataSource' defined in class path resource [

    现场情景: 初次搭建springboot工程,原本要搭建一个springboot+mybatis的maven工程,听说springboot会把一切给配置好,天真的在执行完mybatis自动生成mapp ...

最新文章

  1. docker ubuntu镜像_docker使用教程
  2. 树模型为什么是不能进行梯度下降
  3. 笔算除法 c语言,《两、三位数除以一位数,笔算》
  4. 视音频编解码学习工程:H.264分析器
  5. 【Vegas原创】X connection to localhost:11.0 broken (explicit kill or server shutdown)解决方法...
  6. dfs中return回溯问题
  7. 冒泡排序法:一维数组 (最费内存资源的排序法)
  8. linux串口查看mxser,Ubuntu8.04安装CP-168U的串口连接问题
  9. AJ是什么牌子,AJ是什么意思,AJ鞋子价格多少一起来看一下
  10. webpack.config.js====CSS相关:插件optimize-css-assets-webpack-plugin
  11. 小D课堂 - 零基础入门SpringBoot2.X到实战_第9节 SpringBoot2.x整合Redis实战_38、源码编译安装Redis4.x...
  12. php 时间转换时间戳_如何实现PHP时间戳与日期的转换
  13. 计算机里的声卡的主要作用,声卡是什么?他的主要作用有哪些?
  14. SpringBoot 整合 Elasticsearch 实现海量级数据搜索
  15. 解决:Android4.3锁屏界面Emergency calls only - China Unicom与EMERGENCY CALL语义重复
  16. 鼠标点击事件对象的clientX、pageX、offsetX、screenX、x
  17. 大家查找医疗英文文献都去哪个网?
  18. 英国内政部(Home Office)间谍机构(spy powers)假装它是Ofcom咨询中的一名私人公民1514378369635...
  19. mysql 表结构的复制
  20. goldenboy机器人_急求阿西莫夫机器人,基地,帝国三大系列的书名及其简介

热门文章

  1. Linux ARM平台开发系列讲解(GMSL摄像头篇)1.1 GMSL协议介绍
  2. 计算机组成原理----有关数据通路
  3. oracle中计算两个日期之间的差值
  4. 机器学习在金融大数据风险建模中的应用
  5. 在keil中如何切换stm32的大中小容量芯片
  6. 混合高斯模型介绍以及应用
  7. 正确使用uniapp搭配微信开发者工具自带的骨架屏功能,生成骨架屏
  8. 大数据技术(1):大数据发展脉络
  9. 操作系统----进程间通信的方式
  10. 上海大学2021年博士研究生招生简章