赞
踩
可以在application.properties文件内、application.yml文件内或作为命令行开关指定各种属性。本附录提供了常见Spring Cloud OpenFeign属性的列表,以及对使用它们的底层类的引用。
Name | Default | Description |
---|---|---|
feign.circuitbreaker.enabled |
| 如果为true,OpenFeign客户端将被包装为Spring Cloud CircuitBreaker断路器。 |
feign.client.config | ||
feign.client.decode-slash |
| 默认情况下,OpenFeign客户端不编码斜杠/字符。要更改此行为,请将decodeSlash设置为false。 |
feign.client.default-config |
| |
feign.client.default-to-properties |
| |
feign.compression.request.enabled |
| Enables the request sent by Feign to be compressed. |
feign.compression.request.mime-types |
| The list of supported mime types. |
feign.compression.request.min-request-size |
| The minimum threshold content size. |
feign.compression.response.enabled |
| Enables the response from Feign to be compressed. |
feign.compression.response.useGzipDecoder |
| Enables the default gzip decoder to be used. |
feign.httpclient.connection-timeout |
| |
feign.httpclient.connection-timer-repeat |
| |
feign.httpclient.disable-ssl-validation |
| |
feign.httpclient.enabled |
| Enables the use of the Apache HTTP Client by Feign. |
feign.httpclient.follow-redirects |
| |
feign.httpclient.max-connections |
| |
feign.httpclient.max-connections-per-route |
| |
feign.httpclient.time-to-live |
| |
feign.httpclient.time-to-live-unit | ||
feign.okhttp.enabled |
| Enables the use of the OK HTTP Client by Feign. |
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。