天天看點

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