Error creating bean with name ‘ribbonLoadBalancingHttpClient‘
@通过网关连接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‘相关推荐
- 使用JPA进行update操作时,报org.springframework.beans.factory.BeanCreationException: Error creating bean with
使用JPA进行update操作时,报org.springframework.beans.factory.BeanCreationException: Error creating bean with ...
- org.springframework.beans.factory.BeanCreationException: Error creating bean with name
严重: Exception sending context initialized event to listener instance of class org.springframework.we ...
- Error creating bean with name 'org.springframework.amqp.rabbit.config.ListenerContainerFactoryBean#0
Spring 整合rabbitmq 出现错误 严重: Exception sending context initialized event to listener instance of class ...
- Error creating bean with name 'multipleEntityManagerFactory' defined in class
2019独角兽企业重金招聘Python工程师标准>>> Error creating bean with name 'multipleEntityManagerFactory' de ...
- springboot 启动的时候报错 Error creating bean with name 'solrClient'
springboot 启动的时候报错: org.springframework.beans.factory.BeanCreationException: Error creating bean wit ...
- Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 't
1. 今天在做redis的时候,爆出这样的错误: Caused by: org.springframework.beans.factory.BeanCreationException: Error ...
- 启动springboot报错Error creating bean with name 'dataSource' defined in class path resource
2019独角兽企业重金招聘Python工程师标准>>> 启动springboot报错Error creating bean with name 'dataSource' define ...
- 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 ...
- BeanCreationException: Error creating bean with name 'dataSource' defined in class path resource [
现场情景: 初次搭建springboot工程,原本要搭建一个springboot+mybatis的maven工程,听说springboot会把一切给配置好,天真的在执行完mybatis自动生成mapp ...
最新文章
- docker ubuntu镜像_docker使用教程
- 树模型为什么是不能进行梯度下降
- 笔算除法 c语言,《两、三位数除以一位数,笔算》
- 视音频编解码学习工程:H.264分析器
- 【Vegas原创】X connection to localhost:11.0 broken (explicit kill or server shutdown)解决方法...
- dfs中return回溯问题
- 冒泡排序法:一维数组 (最费内存资源的排序法)
- linux串口查看mxser,Ubuntu8.04安装CP-168U的串口连接问题
- AJ是什么牌子,AJ是什么意思,AJ鞋子价格多少一起来看一下
- webpack.config.js====CSS相关:插件optimize-css-assets-webpack-plugin
- 小D课堂 - 零基础入门SpringBoot2.X到实战_第9节 SpringBoot2.x整合Redis实战_38、源码编译安装Redis4.x...
- php 时间转换时间戳_如何实现PHP时间戳与日期的转换
- 计算机里的声卡的主要作用,声卡是什么?他的主要作用有哪些?
- SpringBoot 整合 Elasticsearch 实现海量级数据搜索
- 解决:Android4.3锁屏界面Emergency calls only - China Unicom与EMERGENCY CALL语义重复
- 鼠标点击事件对象的clientX、pageX、offsetX、screenX、x
- 大家查找医疗英文文献都去哪个网?
- 英国内政部(Home Office)间谍机构(spy powers)假装它是Ofcom咨询中的一名私人公民1514378369635...
- mysql 表结构的复制
- goldenboy机器人_急求阿西莫夫机器人,基地,帝国三大系列的书名及其简介