Appendix A: Common application properties

Various properties can be specified inside your application.properties file, inside your application.yml file, or as command line switches. This appendix provides a list of common Spring Cloud OpenFeign properties and references to the underlying classes that consume them.

Property contributions can come from additional jar files on your classpath, so you should not consider this an exhaustive list. Also, you can define your own properties.
Name Default Description

feign.client.config

null

feign.client.default-config

default

null

feign.client.default-to-properties

true

null

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

null

feign.httpclient.connection-timer-repeat

3000

null

feign.httpclient.disable-ssl-validation

false

null

feign.httpclient.enabled

true

Enables the use of the Apache HTTP Client by Feign.

feign.httpclient.follow-redirects

true

null

feign.httpclient.max-connections

200

null

feign.httpclient.max-connections-per-route

50

null

feign.httpclient.time-to-live

900

null

feign.httpclient.time-to-live-unit

null

feign.hystrix.enabled

false

If true, an OpenFeign client will be wrapped with a Hystrix circuit breaker.

feign.okhttp.enabled

false

Enables the use of the OK HTTP Client by Feign.