How to set custom Feign client connection timeout?

后端 未结 2 1136
离开以前
离开以前 2021-02-03 11:48

I have Spring Boot application with this Gradle dependencies:

compile(\"org.springframework.cloud:spring-cloud-starter-eureka\")
compile(\"org.springframework.cl         


        
2条回答
  •  离开以前
    2021-02-03 12:32

    I solved my problem using this answer on question: Hystrix command fails with “timed-out and no fallback available”.

    I added hystrix.command.default.execution.isolation.thread.timeoutInMilliseconds=4000 to my application.properties to set custom timeout.

提交回复
热议问题