This version is still in development and is not considered stable yet. For the latest stable version, please use Spring Cloud OpenFeign 4.1.4! |
Configuration Properties
Below you can find a list of configuration properties.
Name | Default | Description |
---|---|---|
spring.cloud.compatibility-verifier.compatible-boot-versions |
Default accepted versions for the Spring Boot dependency. You can set {@code x} for the patch version if you don’t want to specify a concrete value. Example: {@code 3.4.x} |
|
spring.cloud.compatibility-verifier.enabled |
|
Enables creation of Spring Cloud compatibility verification. |
spring.cloud.config.allow-override |
|
Flag to indicate that {@link #isOverrideSystemProperties() systemPropertiesOverride} can be used. Set to false to prevent users from changing the default accidentally. Default true. |
spring.cloud.config.initialize-on-context-refresh |
|
Flag to initialize bootstrap configuration on context refresh event. Default false. |
spring.cloud.config.override-none |
|
Flag to indicate that when {@link #setAllowOverride(boolean) allowOverride} is true, external properties should take lowest priority and should not override any existing property sources (including local config files). Default false. This will only have an effect when using config first bootstrap. |
spring.cloud.config.override-system-properties |
|
Flag to indicate that the external properties should override system properties. Default true. |
spring.cloud.decrypt-environment-post-processor.enabled |
|
Enable the DecryptEnvironmentPostProcessor. |
spring.cloud.discovery.client.composite-indicator.enabled |
|
Enables discovery client composite health indicator. |
spring.cloud.discovery.client.health-indicator.enabled |
|
|
spring.cloud.discovery.client.health-indicator.include-description |
|
|
spring.cloud.discovery.client.health-indicator.use-services-query |
|
Whether or not the indicator should use {@link DiscoveryClient#getServices} to check its health. When set to {@code false} the indicator instead uses the lighter {@link DiscoveryClient#probe()}. This can be helpful in large deployments where the number of services returned makes the operation unnecessarily heavy. |
spring.cloud.discovery.client.simple.instances |
||
spring.cloud.discovery.client.simple.local.host |
||
spring.cloud.discovery.client.simple.local.instance-id |
||
spring.cloud.discovery.client.simple.local.metadata |
||
spring.cloud.discovery.client.simple.local.port |
|
|
spring.cloud.discovery.client.simple.local.secure |
|
|
spring.cloud.discovery.client.simple.local.service-id |
||
spring.cloud.discovery.client.simple.local.uri |
||
spring.cloud.discovery.client.simple.order |
||
spring.cloud.discovery.enabled |
|
Enables discovery client health indicators. |
spring.cloud.features.enabled |
|
Enables the features endpoint. |
spring.cloud.httpclientfactories.apache.enabled |
|
Enables creation of Apache Http Client factory beans. |
spring.cloud.httpclientfactories.ok.enabled |
|
Enables creation of OK Http Client factory beans. |
spring.cloud.hypermedia.refresh.fixed-delay |
|
|
spring.cloud.hypermedia.refresh.initial-delay |
|
|
spring.cloud.inetutils.default-hostname |
|
The default hostname. Used in case of errors. |
spring.cloud.inetutils.default-ip-address |
|
The default IP address. Used in case of errors. |
spring.cloud.inetutils.ignored-interfaces |
List of Java regular expressions for network interfaces that will be ignored. |
|
spring.cloud.inetutils.preferred-networks |
List of Java regular expressions for network addresses that will be preferred. |
|
spring.cloud.inetutils.timeout-seconds |
|
Timeout, in seconds, for calculating hostname. |
spring.cloud.inetutils.use-only-site-local-interfaces |
|
Whether to use only interfaces with site local addresses. See {@link InetAddress#isSiteLocalAddress()} for more details. |
spring.cloud.loadbalancer.call-get-with-request-on-delegates |
|
If this flag is set to {@code true}, {@code ServiceInstanceListSupplier#get(Request request)} method will be implemented to call {@code delegate.get(request)} in classes assignable from {@code DelegatingServiceInstanceListSupplier} that don’t already implement that method, with the exclusion of {@code CachingServiceInstanceListSupplier} and {@code HealthCheckServiceInstanceListSupplier}, which should be placed in the instance supplier hierarchy directly after the supplier performing instance retrieval over the network, before any request-based filtering is done, {@code true} by default. |
spring.cloud.loadbalancer.clients |
||
spring.cloud.loadbalancer.eager-load.clients |
||
spring.cloud.loadbalancer.health-check.initial-delay |
|
Initial delay value for the HealthCheck scheduler. |
spring.cloud.loadbalancer.health-check.interval |
|
Interval for rerunning the HealthCheck scheduler. |
spring.cloud.loadbalancer.health-check.interval |
|
Interval for rerunning the HealthCheck scheduler. |
spring.cloud.loadbalancer.health-check.path |
Path at which the health-check request should be made. Can be set up per |
|
spring.cloud.loadbalancer.health-check.port |
Path at which the health-check request should be made. If none is set, the port under which the requested service is available at the service instance. |
|
spring.cloud.loadbalancer.health-check.refetch-instances |
|
Indicates whether the instances should be refetched by the |
spring.cloud.loadbalancer.health-check.refetch-instances-interval |
|
Interval for refetching available service instances. |
spring.cloud.loadbalancer.health-check.repeat-health-check |
|
Indicates whether health checks should keep repeating. It might be useful to set it to |
spring.cloud.loadbalancer.health-check.update-results-list |
|
Indicates whether the {@code healthCheckFlux} should emit on each alive {@link ServiceInstance} that has been retrieved. If set to {@code false}, the entire alive instances sequence is first collected into a list and only then emitted. |
spring.cloud.loadbalancer.hint |
Allows setting the value of <code>hint</code> that is passed on to the LoadBalancer request and can subsequently be used in {@link ReactiveLoadBalancer} implementations. |
|
spring.cloud.loadbalancer.hint-header-name |
|
Allows setting the name of the header used for passing the hint for hint-based service instance filtering. |
spring.cloud.loadbalancer.retry.backoff.enabled |
|
Indicates whether Reactor Retry backoffs should be applied. |
spring.cloud.loadbalancer.retry.backoff.jitter |
|
Used to set |
spring.cloud.loadbalancer.retry.backoff.max-backoff |
|
Used to set |
spring.cloud.loadbalancer.retry.backoff.min-backoff |
|
Used to set |
spring.cloud.loadbalancer.retry.enabled |
|
Enables LoadBalancer retries. |
spring.cloud.loadbalancer.retry.max-retries-on-next-service-instance |
|
Number of retries to be executed on the next |
spring.cloud.loadbalancer.retry.max-retries-on-same-service-instance |
|
Number of retries to be executed on the same |
spring.cloud.loadbalancer.retry.retry-on-all-exceptions |
|
Indicates retries should be attempted for all exceptions, not only those specified in |
spring.cloud.loadbalancer.retry.retry-on-all-operations |
|
Indicates retries should be attempted on operations other than |
spring.cloud.loadbalancer.retry.retryable-exceptions |
|
A |
spring.cloud.loadbalancer.retry.retryable-status-codes |
|
A |
spring.cloud.loadbalancer.stats.micrometer.enabled |
|
Enables micrometer metrics for load-balanced requests. |
spring.cloud.loadbalancer.sticky-session.add-service-instance-cookie |
|
Indicates whether a cookie with the newly selected instance should be added by LoadBalancer. |
spring.cloud.loadbalancer.sticky-session.instance-id-cookie-name |
|
The name of the cookie holding the preferred instance id. |
spring.cloud.loadbalancer.subset.instance-id |
Instance id of deterministic subsetting. If not set, {@link IdUtils#getDefaultInstanceId(PropertyResolver)} will be used. |
|
spring.cloud.loadbalancer.subset.size |
|
Max subset size of deterministic subsetting. |
spring.cloud.loadbalancer.x-forwarded.enabled |
|
To Enable X-Forwarded Headers. |
spring.cloud.openfeign.autoconfiguration.jackson.enabled |
|
If true, PageJacksonModule and SortJacksonModule bean will be provided for Jackson page decoding. |
spring.cloud.openfeign.circuitbreaker.alphanumeric-ids.enabled |
|
If true, Circuit Breaker ids will only contain alphanumeric characters to allow for configuration via configuration properties. |
spring.cloud.openfeign.circuitbreaker.enabled |
|
If true, an OpenFeign client will be wrapped with a Spring Cloud CircuitBreaker circuit breaker. |
spring.cloud.openfeign.circuitbreaker.group.enabled |
|
If true, an OpenFeign client will be wrapped with a Spring Cloud CircuitBreaker circuit breaker with group. |
spring.cloud.openfeign.client.config |
||
spring.cloud.openfeign.client.decode-slash |
|
Feign clients do not encode slash |
spring.cloud.openfeign.client.default-config |
|
|
spring.cloud.openfeign.client.default-to-properties |
|
|
spring.cloud.openfeign.client.refresh-enabled |
|
Enables options value refresh capability for Feign. |
spring.cloud.openfeign.compression.request.content-encoding-types |
The list of content encodings (applicable encodings depend on the used client). |
|
spring.cloud.openfeign.compression.request.enabled |
|
Enables the request sent by Feign to be compressed. |
spring.cloud.openfeign.compression.request.mime-types |
|
The list of supported mime types. |
spring.cloud.openfeign.compression.request.min-request-size |
|
The minimum threshold content size. |
spring.cloud.openfeign.compression.response.enabled |
|
Enables the response from Feign to be compressed. |
spring.cloud.openfeign.encoder.charset-from-content-type |
|
Indicates whether the charset should be derived from the {@code Content-Type} header. |
spring.cloud.openfeign.http2client.enabled |
|
Enables the use of the Java11 HTTP 2 Client by Feign. |
spring.cloud.openfeign.httpclient.connection-timeout |
|
|
spring.cloud.openfeign.httpclient.connection-timer-repeat |
|
|
spring.cloud.openfeign.httpclient.disable-ssl-validation |
|
|
spring.cloud.openfeign.httpclient.follow-redirects |
|
|
spring.cloud.openfeign.httpclient.hc5.connection-request-timeout |
|
Default value for connection request timeout. |
spring.cloud.openfeign.httpclient.hc5.connection-request-timeout-unit |
Default value for connection request timeout unit. |
|
spring.cloud.openfeign.httpclient.hc5.enabled |
|
Enables the use of the Apache HTTP Client 5 by Feign. |
spring.cloud.openfeign.httpclient.hc5.pool-concurrency-policy |
Pool concurrency policies. |
|
spring.cloud.openfeign.httpclient.hc5.pool-reuse-policy |
Pool connection re-use policies. |
|
spring.cloud.openfeign.httpclient.hc5.socket-timeout |
|
Default value for socket timeout. |
spring.cloud.openfeign.httpclient.hc5.socket-timeout-unit |
Default value for socket timeout unit. |
|
spring.cloud.openfeign.httpclient.http2.version |
|
Configure the protocols used by this client to communicate with remote servers. Uses {@link String} value of {@link HttpClient.Version}. |
spring.cloud.openfeign.httpclient.max-connections |
|
|
spring.cloud.openfeign.httpclient.max-connections-per-route |
|
|
spring.cloud.openfeign.httpclient.ok-http.protocols |
Configure the protocols used by this client to communicate with remote servers. Uses {@link String} values of {@link Protocol}. |
|
spring.cloud.openfeign.httpclient.ok-http.read-timeout |
|
{@link OkHttpClient} read timeout; defaults to 60 seconds. |
spring.cloud.openfeign.httpclient.time-to-live |
|
|
spring.cloud.openfeign.httpclient.time-to-live-unit |
||
spring.cloud.openfeign.lazy-attributes-resolution |
|
Switches @FeignClient attributes resolution mode to lazy. |
spring.cloud.openfeign.micrometer.enabled |
|
Enables Micrometer capabilities for Feign. |
spring.cloud.openfeign.oauth2.clientRegistrationId |
Provides a clientId to be used with OAuth2. |
|
spring.cloud.openfeign.oauth2.enabled |
|
Enables feign interceptor for managing oauth2 access token. |
spring.cloud.openfeign.okhttp.enabled |
|
Enables the use of the OK HTTP Client by Feign. |
spring.cloud.refresh.additional-property-sources-to-retain |
Additional property sources to retain during a refresh. Typically only system property sources are retained. This property allows property sources, such as property sources created by EnvironmentPostProcessors to be retained as well. |
|
spring.cloud.refresh.enabled |
|
Enables autoconfiguration for the refresh scope and associated features. |
spring.cloud.refresh.extra-refreshable |
|
Additional class names for beans to post process into refresh scope. |
spring.cloud.refresh.never-refreshable |
|
Comma separated list of class names for beans to never be refreshed or rebound. |
spring.cloud.refresh.on-restart.enabled |
|
Enable refreshing context on start. |
spring.cloud.service-registry.auto-registration.enabled |
|
Whether service auto-registration is enabled. Defaults to true. |
spring.cloud.service-registry.auto-registration.fail-fast |
|
Whether startup fails if there is no AutoServiceRegistration. Defaults to false. |
spring.cloud.service-registry.auto-registration.register-management |
|
Whether to register the management as a service. Defaults to true. |
spring.cloud.util.enabled |
|
Enables creation of Spring Cloud utility beans. |