diff --git a/1.0.x/index.html b/1.0.x/index.html index f75472ab..312df286 100644 --- a/1.0.x/index.html +++ b/1.0.x/index.html @@ -571,11 +571,11 @@ If you use Spring Cloud Consul Config, cloud: consul: discovery: - instanceId: ${spring.application.name}:${spring.application.instance_id:${random.value}} + instanceId: ${spring.application.name}:${vcap.application.instance_id:${spring.application.instance_id:${random.value}}}
With this metadata, and multiple service instances deployed on localhost, the random value will kick in there to make the instance unique. In Cloudfoundry the spring.application.instance_id will be populated automatically in a Spring Boot Actuator application, so the random value will not be needed.
With this metadata, and multiple service instances deployed on localhost, the random value will kick in there to make the instance unique. In Cloudfoundry the vcap.application.instance_id will be populated automatically in a Spring Boot application, so the random value will not be needed.