Configuration Properties

Below you can find a list of configuration properties.spring-doc.cn

Name Default Description

spring.cloud.compatibility-verifier.compatible-boot-versionsspring-doc.cn

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-doc.cn

spring.cloud.compatibility-verifier.enabledspring-doc.cn

falsespring-doc.cn

Enables creation of Spring Cloud compatibility verification.spring-doc.cn

spring.cloud.config.allow-overridespring-doc.cn

truespring-doc.cn

Flag to indicate that {@link #isOverrideSystemProperties() systemPropertiesOverride} can be used. Set to false to prevent users from changing the default accidentally. Default true.spring-doc.cn

spring.cloud.config.initialize-on-context-refreshspring-doc.cn

falsespring-doc.cn

Flag to initialize bootstrap configuration on context refresh event. Default false.spring-doc.cn

spring.cloud.config.override-nonespring-doc.cn

falsespring-doc.cn

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-doc.cn

spring.cloud.config.override-system-propertiesspring-doc.cn

truespring-doc.cn

Flag to indicate that the external properties should override system properties. Default true.spring-doc.cn

spring.cloud.decrypt-environment-post-processor.enabledspring-doc.cn

truespring-doc.cn

Enable the DecryptEnvironmentPostProcessor.spring-doc.cn

spring.cloud.discovery.client.composite-indicator.enabledspring-doc.cn

truespring-doc.cn

Enables discovery client composite health indicator.spring-doc.cn

spring.cloud.discovery.client.health-indicator.enabledspring-doc.cn

truespring-doc.cn

spring.cloud.discovery.client.health-indicator.include-descriptionspring-doc.cn

falsespring-doc.cn

spring.cloud.discovery.client.health-indicator.use-services-queryspring-doc.cn

truespring-doc.cn

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-doc.cn

spring.cloud.discovery.client.simple.instancesspring-doc.cn

spring.cloud.discovery.client.simple.local.hostspring-doc.cn

spring.cloud.discovery.client.simple.local.instance-idspring-doc.cn

spring.cloud.discovery.client.simple.local.metadataspring-doc.cn

spring.cloud.discovery.client.simple.local.portspring-doc.cn

0spring-doc.cn

spring.cloud.discovery.client.simple.local.securespring-doc.cn

falsespring-doc.cn

spring.cloud.discovery.client.simple.local.service-idspring-doc.cn

spring.cloud.discovery.client.simple.local.urispring-doc.cn

spring.cloud.discovery.client.simple.orderspring-doc.cn

spring.cloud.discovery.enabledspring-doc.cn

truespring-doc.cn

Enables discovery client health indicators.spring-doc.cn

spring.cloud.features.enabledspring-doc.cn

truespring-doc.cn

Enables the features endpoint.spring-doc.cn

spring.cloud.httpclientfactories.apache.enabledspring-doc.cn

truespring-doc.cn

Enables creation of Apache Http Client factory beans.spring-doc.cn

spring.cloud.httpclientfactories.ok.enabledspring-doc.cn

truespring-doc.cn

Enables creation of OK Http Client factory beans.spring-doc.cn

spring.cloud.hypermedia.refresh.fixed-delayspring-doc.cn

5000spring-doc.cn

spring.cloud.hypermedia.refresh.initial-delayspring-doc.cn

10000spring-doc.cn

spring.cloud.inetutils.default-hostnamespring-doc.cn

localhostspring-doc.cn

The default hostname. Used in case of errors.spring-doc.cn

spring.cloud.inetutils.default-ip-addressspring-doc.cn

127.0.0.1spring-doc.cn

The default IP address. Used in case of errors.spring-doc.cn

spring.cloud.inetutils.ignored-interfacesspring-doc.cn

List of Java regular expressions for network interfaces that will be ignored.spring-doc.cn

spring.cloud.inetutils.preferred-networksspring-doc.cn

List of Java regular expressions for network addresses that will be preferred.spring-doc.cn

spring.cloud.inetutils.timeout-secondsspring-doc.cn

1spring-doc.cn

Timeout, in seconds, for calculating hostname.spring-doc.cn

spring.cloud.inetutils.use-only-site-local-interfacesspring-doc.cn

falsespring-doc.cn

Whether to use only interfaces with site local addresses. See {@link InetAddress#isSiteLocalAddress()} for more details.spring-doc.cn

spring.cloud.loadbalancer.cache.caffeine.specspring-doc.cn

The spec to use to create caches. See CaffeineSpec for more details on the spec format.spring-doc.cn

spring.cloud.loadbalancer.cache.capacityspring-doc.cn

256spring-doc.cn

Initial cache capacity expressed as int.spring-doc.cn

spring.cloud.loadbalancer.cache.enabledspring-doc.cn

truespring-doc.cn

Enables Spring Cloud LoadBalancer caching mechanism.spring-doc.cn

spring.cloud.loadbalancer.cache.ttlspring-doc.cn

35sspring-doc.cn

Time To Live - time counted from writing of the record, after which cache entries are expired, expressed as a {@link Duration}. The property {@link String} has to be in keeping with the appropriate syntax as specified in Spring Boot <code>StringToDurationConverter</code>. @see <a href= "https://github.com/spring-projects/spring-boot/blob/master/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/convert/StringToDurationConverter.java">StringToDurationConverter.java</a>spring-doc.cn

spring.cloud.loadbalancer.call-get-with-request-on-delegatesspring-doc.cn

truespring-doc.cn

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-doc.cn

spring.cloud.loadbalancer.clientsspring-doc.cn

spring.cloud.loadbalancer.configurationsspring-doc.cn

defaultspring-doc.cn

Enables a predefined LoadBalancer configuration.spring-doc.cn

spring.cloud.loadbalancer.eager-load.clientsspring-doc.cn

Names of the clients.spring-doc.cn

spring.cloud.loadbalancer.enabledspring-doc.cn

truespring-doc.cn

Enables Spring Cloud LoadBalancer.spring-doc.cn

spring.cloud.loadbalancer.health-check.initial-delayspring-doc.cn

0spring-doc.cn

Initial delay value for the HealthCheck scheduler.spring-doc.cn

spring.cloud.loadbalancer.health-check.intervalspring-doc.cn

25sspring-doc.cn

Interval for rerunning the HealthCheck scheduler.spring-doc.cn

spring.cloud.loadbalancer.health-check.intervalspring-doc.cn

25sspring-doc.cn

Interval for rerunning the HealthCheck scheduler.spring-doc.cn

spring.cloud.loadbalancer.health-check.pathspring-doc.cn

Path at which the health-check request should be made. Can be set up per serviceId. A default value can be set up as well. If none is set up, /actuator/health will be used.spring-doc.cn

spring.cloud.loadbalancer.health-check.portspring-doc.cn

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-doc.cn

spring.cloud.loadbalancer.health-check.refetch-instancesspring-doc.cn

falsespring-doc.cn

Indicates whether the instances should be refetched by the HealthCheckServiceInstanceListSupplier. This can be used if the instances can be updated and the underlying delegate does not provide an ongoing flux.spring-doc.cn

spring.cloud.loadbalancer.health-check.refetch-instances-intervalspring-doc.cn

25sspring-doc.cn

Interval for refetching available service instances.spring-doc.cn

spring.cloud.loadbalancer.health-check.repeat-health-checkspring-doc.cn

truespring-doc.cn

Indicates whether health checks should keep repeating. It might be useful to set it to false if periodically refetching the instances, as every refetch will also trigger a healthcheck.spring-doc.cn

spring.cloud.loadbalancer.health-check.update-results-listspring-doc.cn

truespring-doc.cn

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-doc.cn

spring.cloud.loadbalancer.hintspring-doc.cn

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-doc.cn

spring.cloud.loadbalancer.hint-header-namespring-doc.cn

X-SC-LB-Hintspring-doc.cn

Allows setting the name of the header used for passing the hint for hint-based service instance filtering.spring-doc.cn

spring.cloud.loadbalancer.retry.avoid-previous-instancespring-doc.cn

truespring-doc.cn

Enables wrapping ServiceInstanceListSupplier beans with RetryAwareServiceInstanceListSupplier if Spring-Retry is in the classpath.spring-doc.cn

spring.cloud.loadbalancer.retry.backoff.enabledspring-doc.cn

falsespring-doc.cn

Indicates whether Reactor Retry backoffs should be applied.spring-doc.cn

spring.cloud.loadbalancer.retry.backoff.jitterspring-doc.cn

0.5spring-doc.cn

Used to set RetryBackoffSpec.jitter.spring-doc.cn

spring.cloud.loadbalancer.retry.backoff.max-backoffspring-doc.cn

Long.MAX msspring-doc.cn

Used to set RetryBackoffSpec.maxBackoff.spring-doc.cn

spring.cloud.loadbalancer.retry.backoff.min-backoffspring-doc.cn

5 msspring-doc.cn

Used to set RetryBackoffSpec#minBackoff.spring-doc.cn

spring.cloud.loadbalancer.retry.enabledspring-doc.cn

truespring-doc.cn

Enables LoadBalancer retries.spring-doc.cn

spring.cloud.loadbalancer.retry.max-retries-on-next-service-instancespring-doc.cn

1spring-doc.cn

Number of retries to be executed on the next ServiceInstance. A ServiceInstance is chosen before each retry call.spring-doc.cn

spring.cloud.loadbalancer.retry.max-retries-on-same-service-instancespring-doc.cn

0spring-doc.cn

Number of retries to be executed on the same ServiceInstance.spring-doc.cn

spring.cloud.loadbalancer.retry.retry-on-all-exceptionsspring-doc.cn

falsespring-doc.cn

Indicates retries should be attempted for all exceptions, not only those specified in retryableExceptions.spring-doc.cn

spring.cloud.loadbalancer.retry.retry-on-all-operationsspring-doc.cn

falsespring-doc.cn

Indicates retries should be attempted on operations other than HttpMethod.GET.spring-doc.cn

spring.cloud.loadbalancer.retry.retryable-exceptionsspring-doc.cn

{}spring-doc.cn

A Set of Throwable classes that should trigger a retry.spring-doc.cn

spring.cloud.loadbalancer.retry.retryable-status-codesspring-doc.cn

{}spring-doc.cn

A Set of status codes that should trigger a retry.spring-doc.cn

spring.cloud.loadbalancer.service-discovery.timeoutspring-doc.cn

String representation of Duration of the timeout for calls to service discovery.spring-doc.cn

spring.cloud.loadbalancer.stats.micrometer.enabledspring-doc.cn

falsespring-doc.cn

Enables Spring Cloud LoadBalancer Micrometer stats.spring-doc.cn

spring.cloud.loadbalancer.sticky-session.add-service-instance-cookiespring-doc.cn

falsespring-doc.cn

Indicates whether a cookie with the newly selected instance should be added by LoadBalancer.spring-doc.cn

spring.cloud.loadbalancer.sticky-session.instance-id-cookie-namespring-doc.cn

sc-lb-instance-idspring-doc.cn

The name of the cookie holding the preferred instance id.spring-doc.cn

spring.cloud.loadbalancer.subset.instance-idspring-doc.cn

Instance id of deterministic subsetting. If not set, {@link IdUtils#getDefaultInstanceId(PropertyResolver)} will be used.spring-doc.cn

spring.cloud.loadbalancer.subset.sizespring-doc.cn

100spring-doc.cn

Max subset size of deterministic subsetting.spring-doc.cn

spring.cloud.loadbalancer.x-forwarded.enabledspring-doc.cn

falsespring-doc.cn

To Enable X-Forwarded Headers.spring-doc.cn

spring.cloud.loadbalancer.zonespring-doc.cn

Spring Cloud LoadBalancer zone.spring-doc.cn

spring.cloud.refresh.additional-property-sources-to-retainspring-doc.cn

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-doc.cn

spring.cloud.refresh.enabledspring-doc.cn

truespring-doc.cn

Enables autoconfiguration for the refresh scope and associated features.spring-doc.cn

spring.cloud.refresh.extra-refreshablespring-doc.cn

truespring-doc.cn

Additional class names for beans to post process into refresh scope.spring-doc.cn

spring.cloud.refresh.never-refreshablespring-doc.cn

truespring-doc.cn

Comma separated list of class names for beans to never be refreshed or rebound.spring-doc.cn

spring.cloud.refresh.on-restart.enabledspring-doc.cn

truespring-doc.cn

Enable refreshing context on start.spring-doc.cn

spring.cloud.service-registry.auto-registration.enabledspring-doc.cn

truespring-doc.cn

Whether service auto-registration is enabled. Defaults to true.spring-doc.cn

spring.cloud.service-registry.auto-registration.fail-fastspring-doc.cn

falsespring-doc.cn

Whether startup fails if there is no AutoServiceRegistration. Defaults to false.spring-doc.cn

spring.cloud.service-registry.auto-registration.register-managementspring-doc.cn

truespring-doc.cn

Whether to register the management as a service. Defaults to true.spring-doc.cn

spring.cloud.util.enabledspring-doc.cn

truespring-doc.cn

Enables creation of Spring Cloud utility beans.spring-doc.cn