名称 | 默认值 | 描述 |
---|---|---|
feign.autoconfiguration.jackson.enabled | false | 如果为true,则将提供PageJacksonModule和SortJacksonModule bean用于Jackson页面解码. |
feign.circuitbreaker.enabled | false | 如果为true,则将使用Spring Cloud CircuitBreaker断路器包装OpenFeign客户端. |
feign.client.config | ||
feign.client.decode-slash | true | 伪客户端默认情况下不对斜杠“ /”字符进行编码。 要更改此行为,请将“ decodeSlash”设置为“ false”. |
feign.client.default-config | default | |
feign.client.default-to-properties | true | |
feign.compression.request.enabled | false | 允许压缩Feign发送的请求. |
feign.compression.request.mime-types | [text/xml, application/xml, application/json] | 支持的mime类型列表. |
feign.compression.request.min-request-size | 2048 | 最小阈值内容大小. |
feign.compression.response.enabled | false | 可以压缩来自Feign的响应. |
feign.compression.response.useGzipDecoder | false | 启用要使用的默认gzip解码器. |
feign.encoder.charset-from-content-type | false | 指示字符集是否应从{@code Content-Type}标头派生. |
feign.httpclient.connection-timeout | 2000 | |
feign.httpclient.connection-timer-repeat | 3000 | |
feign.httpclient.disable-ssl-validation | false | |
feign.httpclient.enabled | true | 允许通过Feign使用Apache HTTP客户端. |
feign.httpclient.follow-redirects | true | |
feign.httpclient.hc5.enabled | false | 允许通过Feign使用Apache HTTP Client 5. |
feign.httpclient.hc5.pool-concurrency-policy | 池并发策略. | |
feign.httpclient.hc5.pool-reuse-policy | 池连接重用策略. | |
feign.httpclient.hc5.socket-timeout | 5 | 套接字超时的默认值. |
feign.httpclient.hc5.socket-timeout-unit | 套接字超时单位的默认值. | |
feign.httpclient.max-connections | 200 | |
feign.httpclient.max-connections-per-route | 50 | |
feign.httpclient.time-to-live | 900 | |
feign.httpclient.time-to-live-unit | ||
feign.metrics.enabled | true | 启用伪装的指标功能. |
feign.okhttp.enabled | false | 允许通过Feign使用OK HTTP客户端. |
OpenFeign官网配置
最后编辑于 :
©著作权归作者所有,转载或内容合作请联系作者
- 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
- 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
- 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...