diff --git a/multi/multi__spring_cloud_config_client.html b/multi/multi__spring_cloud_config_client.html index 9751cc19..0251b921 100644 --- a/multi/multi__spring_cloud_config_client.html +++ b/multi/multi__spring_cloud_config_client.html @@ -22,7 +22,7 @@ For example, the following YAML file is for a Config Server that is a Eureka cli configPath: /config
In some cases, you may want to fail startup of a service if it cannot connect to the Config Server.
If this is the desired behavior, set the bootstrap configuration property spring.cloud.config.fail-fast=true to make the client halt with an Exception.
If you expect that the config server may occasionally be unavailable when your application starts, you can make it keep trying after a failure.
-First, you need to set spring.cloud.config.fail-fast=false.
+First, you need to set spring.cloud.config.fail-fast=true.
Then you need to add spring-retry and spring-boot-starter-aop to your classpath.
The default behavior is to retry six times with an initial backoff interval of 1000ms and an exponential multiplier of 1.1 for subsequent backoffs.
You can configure these properties (and others) by setting the spring.cloud.config.retry.* configuration properties.
![]() | Tip | ||
|---|---|---|---|
To take full control of the retry behavior, add a
In some cases, you may want to fail startup of a service if it cannot connect to the Config Server.
If this is the desired behavior, set the bootstrap configuration property If you expect that the config server may occasionally be unavailable when your application starts, you can make it keep trying after a failure.
-First, you need to set
|