documented value of config.fail-fast value for retry is incorrect (#1250)

The value of `config.fail-fast` must be set to non-false value in order to activate the `RetryConfiguration`.
This commit is contained in:
Fabiano Ghisla
2019-02-14 21:43:41 +01:00
committed by Spencer Gibb
parent 9a0b39acb3
commit 4f6ae7231b

View File

@@ -1339,7 +1339,7 @@ If this is the desired behavior, set the bootstrap configuration property `sprin
=== Config Client Retry
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.