Spring Cloud Feign fallback错误解决
来源:互联网 发布:空间绑定域名教程 编辑:程序博客网 时间:2024/05/18 01:55
今天在启动时报了下面这个错误
Error starting ApplicationContext. To display the auto-configuration report re-run your application with 'debug' enabled.nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.fangjia.api.client.auth.AuthRemoteClient': FactoryBean threw exception on object creation; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.fangjia.api.client.auth.AuthRemoteClient': FactoryBean threw exception on object creation; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.fangjia.api.client.auth.AuthRemoteClient': FactoryBean threw exception on object creation; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name java.lang.StackOverflowError ... 1024 common frames omitted
从错误信息看的出是递归导致的,而我这边报错的点是Feign调用的地方
最后排查下来发现是@FeignClient中fallback的值配置错了,应该配置接口的实现类,而我这边配置的就是接口本身,所以导致了递归调用。
阅读全文
0 0
- Spring Cloud Feign fallback错误解决
- spring cloud FeignClient fallback 断路器
- Spring Cloud feign
- Spring Cloud Feign诠释
- spring cloud-feign
- Spring Cloud Feign常见问题
- spring cloud Feign
- spring cloud feign
- Spring Cloud feign使用
- Spring Cloud Feign
- Spring Cloud Feign
- spring-cloud【Feign】
- spring cloud day03 【feign】
- Spring Cloud之Feign入门
- Spring Cloud Feign实例讲解
- Spring Cloud Feign 使用方式
- spring cloud feign做rpc
- 【Spring Cloud】Feign接口调用
- 算法16 Word Search
- SQL Server 2008允许远程访问配置
- 创建glance镜像报错HTTP503
- Ceph学习——Librados与Osdc实现源码解析
- socket获取客户端ip例子
- Spring Cloud Feign fallback错误解决
- spark数据倾斜处理
- Design T-Shirt问题:c++
- DataTables在IE8下报'style' 为空或不是对象错误问题
- scrapy多爬虫以及爬取速度
- springboot(二)添加logback日志
- 关于技术与管理的思考
- div——css渐变线背景
- 同一个tomcat下部署多个项目报错Web app root system property already set to different value: 'webapp.root'...