Feign的底層基於Rabbion實現的,一般情況下直接導入feign的依賴,然后調用feignClient去發送請求,報請求超時。
application.yml
#hystrix的超時時間
hystrix:
command:
default:
execution:
timeout:
enabled: true
isolation:
thread:
timeoutInMilliseconds: 9000
#ribbon的超時時間
ribbon:
ReadTimeout: 3000
ConnectTimeout: 3000