##Hystrix支持,如果为true,hystrix库必须在classpath中
#feign.hystrix.enabled=false
#
##请求和响应GZIP压缩支持
#feign.compression.request.enabled=true
#feign.compression.response.enabled=true
##支持压缩的mime types
#feign.compression.request.enabled=true
#feign.compression.request.mime-types=text/xml,application/xml,application/json
#feign.compression.request.min-request-size=2048
## 日志支持
#logging.level.project.user.UserClient: DEBUG
feign:
hystrix:
enabled: true
#https://github.com/Netflix/Hystrix/wiki/Configuration
#http://blog.csdn.net/heyutao007/article/details/51006694
hystrix:
command:
default:
execution:
isolation:
thread:
timeoutInMilliseconds: 5000
circuitBreaker:
requestVolumeThreshold: 5
metrics:
rollingStats:
timeInMilliseconds: 10000
转载请注明原文地址: https://ju.6miu.com/read-675206.html