Add explicit ref to serviceId for disovery

This commit is contained in:
Dave Syer
2015-02-23 15:40:10 +00:00
parent 346e5746c7
commit fc82c93175

View File

@@ -338,7 +338,10 @@ that by setting `spring.cloud.config.discovery.enabled=true` (default
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.
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
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`).
[[config-client-fail-fast]]
=== Config Client Fail Fast