diff --git a/spring-cloud-config.html b/spring-cloud-config.html index 5548ad96..fd452953 100644 --- a/spring-cloud-config.html +++ b/spring-cloud-config.html @@ -437,6 +437,7 @@ body.book #toc,body.book #preamble,body.book h1.sect0,body.book .sect1>h2{page-b
If you expect that the config server may occasionally be unavailable when
+your app starts, you can ask it to keep trying after a failure. First you need
+to set spring.cloud.config.failFast=true, and then you need to add
+spring-retry and spring-boot-starter-aop to your classpath. The default
+behaviour is to retry 6 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) using spring.config.retry.* configuration properties.
|
+ Tip
+ |
+
+To take full control of the retry add a @Bean of type
+RetryOperationsInterceptor with id "configServerRetryInterceptor". Spring
+Retry has a RetryInterceptorBuilder that makes it easy to create one.
+ |
+
The Config Service serves property sources from /{name}/{profile}/{label}, where the default bindings in the client app are