diff --git a/spring-cloud-config.html b/spring-cloud-config.html index a1709650..94c9937f 100644 --- a/spring-cloud-config.html +++ b/spring-cloud-config.html @@ -446,7 +446,7 @@ body.book #toc,body.book #preamble,body.book h1.sect0,body.book .sect1>h2{page-b
spring.cloud.config.uri (defaults to
If you are using Spring Cloud Netflix and Eureka Service Discovery, -then you can have the Config Server register with Eureka if you want -to, but in the default "Config First" mode, clients won’t be able to -take advantage of the registration.
+If you are using a `DiscoveryClient implementation, such as Spring Cloud Netflix +and Eureka Service Discovery or Spring Cloud Consul (Spring Cloud Zookeeper does +not support this yet), then you can have the Config Server register with the +Discovery Service if you want to, but in the default "Config First" mode, +clients won’t be able to take advantage of the registration.
If you prefer to use Eureka to locate the Config Server, you can do +
If you prefer to use DiscoveryClient to locate the Config Server, you can do
that by setting spring.cloud.config.discovery.enabled=true (default
"false"). The net result of that is that client apps all need a
-bootstrap.yml (or an environment variable) with the Eureka server
-address, e.g. in eureka.client.serviceUrl.defaultZone. The price
-for using this option is an extra network round trip on start up to
+bootstrap.yml (or an environment variable) with the appropriate discovery
+configuration. For example, with Spring Cloud Netflix, you need to define the
+Eureka server address, e.g. in eureka.client.serviceUrl.defaultZone. The
+price for using this option is an extra network round trip on start up to
locate the service registration. The benefit is that the Config Server
-can change its co-ordinates, as long as Eureka is a fixed point. The
-default service id is "CONFIGSERVER" but you can change that on the
+can change its co-ordinates, as long as the Discovery Service is a fixed point. The
+default service id is "configserver" but you can change that on the
client with spring.cloud.config.discovery.serviceId (and on the server
in the usual way for a service, e.g. by setting spring.application.name).