当前位置:   article > 正文

Spring Cloud OpenFeign 相关的配置属性列表

Spring Cloud OpenFeign 相关的配置属性列表

可以在application.properties文件内、application.yml文件内或作为命令行开关指定各种属性。本附录提供了常见Spring Cloud OpenFeign属性的列表,以及对使用它们的底层类的引用。

 

NameDefaultDescription

feign.circuitbreaker.enabled

false

如果为true,OpenFeign客户端将被包装为Spring Cloud CircuitBreaker断路器。

feign.client.config

feign.client.decode-slash

true

默认情况下,OpenFeign客户端不编码斜杠/字符。要更改此行为,请将decodeSlash设置为false。

feign.client.default-config

default

feign.client.default-to-properties

true

feign.compression.request.enabled

false

Enables the request sent by Feign to be compressed.

feign.compression.request.mime-types

[text/xml, application/xml, application/json]

The list of supported mime types.

feign.compression.request.min-request-size

2048

The minimum threshold content size.

feign.compression.response.enabled

false

Enables the response from Feign to be compressed.

feign.compression.response.useGzipDecoder

false

Enables the default gzip decoder to be used.

feign.httpclient.connection-timeout

2000

feign.httpclient.connection-timer-repeat

3000

feign.httpclient.disable-ssl-validation

false

feign.httpclient.enabled

true

Enables the use of the Apache HTTP Client by Feign.

feign.httpclient.follow-redirects

true

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.okhttp.enabled

false

Enables the use of the OK HTTP Client by Feign.

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/笔触狂放9/article/detail/130975
推荐阅读
相关标签
  

闽ICP备14008679号