From 2a019eccc3915208dcd3045b9eedcf45895dd1fa Mon Sep 17 00:00:00 2001 From: Spencer Gibb Date: Thu, 18 Jun 2015 19:29:07 -0600 Subject: [PATCH] Update documentation to reflect that for s-c-consul-config, values need to be in bootstrap.yml fixes gh-43 --- docs/src/main/asciidoc/spring-cloud-consul.adoc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/src/main/asciidoc/spring-cloud-consul.adoc b/docs/src/main/asciidoc/spring-cloud-consul.adoc index 05cc08b1..b698656a 100644 --- a/docs/src/main/asciidoc/spring-cloud-consul.adoc +++ b/docs/src/main/asciidoc/spring-cloud-consul.adoc @@ -62,6 +62,8 @@ spring: port: 8500 ---- +CAUTION: If you use <>, the above values will need to be placed in `bootstrap.yml` instead of `application.yml`. + The default service name, instance id and port, taken from the `Environment`, are `${spring.application.name}`, the Spring Context ID and `${server.port}` respectively. `@EnableDiscoveryClient` make the app into both a Consul "service" (i.e. it registers itself) and a "client" (i.e. it can query Consul to locate other services). @@ -139,7 +141,7 @@ Including a dependency on `org.springframework.cloud:spring-cloud-consul-config` Consul Config my be customized using the following properties: -.application.yml +.bootstrap.yml ---- spring: cloud: