Spring Boot使用Feign客户端调用远程服务时出现:timed-out and no fallback available,failed and no fallback available的

是熔断器超时导致的,可以修改yml,如下

hystrix:
    command:
        default:
            circuitBreaker:
                sleepWindowInMilliseconds: 100000
                forceClosed: true
            execution:
                isolation:
                    thread:
                        timeoutInMilliseconds: 60000
    shareSecurityContext: true
发布了12 篇原创文章 · 获赞 1 · 访问量 5440

猜你喜欢

转载自blog.csdn.net/zhangzhen02/article/details/90440037
今日推荐