#feign 配置
feign:
client:
config:
#default全局的配置
default:
#连接超时时间
connectTimeout: 5000
#读取超时时间
readTimeout: 30000
#日志级别,BASIC就是基本的请求和响应信息
loggerLevel: BASIC
httpclient:
enabled: false
# feign最大连接数
max-connections: 2000
#请求存活时间300s
time-to-live: 300
#请求存活时间单位
time-to-live-unit: seconds
# feign单个路径的最大连接数
max-connections-per-route: 500
compression:
request:
enabled: true
mime-types: text/xml,application/xml,application/json
#大小压缩的限制,只有超过2M的请求数据才会进行压缩
min-request-size: 2048
circuitbreaker:
enabled: true
okhttp:
enabled: true