If failFast=false only log warnings for config loading.

fixes gh-137
This commit is contained in:
Spencer Gibb
2016-02-25 10:30:34 -07:00
parent 3f3fccd01a
commit 2212b9e31a
4 changed files with 74 additions and 4 deletions

View File

@@ -185,6 +185,11 @@ You could store a YAML document in any of the keys listed above.
You can change the data key using `spring.cloud.consul.config.data-key`.
[[spring-cloud-consul-failfast]]
== Fail Fast
It may be convenient in certain circumstances (like local development or certain test scenarios) to not fail if consul isn't available for configuration. Setting `spring.cloud.consul.config.failFast=false` will cause the configuration module to log a warning rather than throw an exception. This will allow the application to continue startup normally.
[[spring-cloud-consul-retry]]
== Consul Retry
@@ -203,7 +208,7 @@ Retry has a `RetryInterceptorBuilder` that makes it easy to create one.
[[spring-cloud-consul-bus]]
== Spring Cloud Bus with Consul
TODO: document Spring Cloud Consul Bus
Coming in a later release.
[[spring-cloud-consul-hystrix]]
== Circuit Breaker with Hystrix