title: Spring Cloud Config Server excample - overrides in application config
body: <p>I try to setup a spring cloud config server and started with the example provided on github.
  <a href="https://github.com/spring-cloud-samples/configserver" rel="nofollow">https://github.com/spring-cloud-samples/configserver</a></p>
  
  <p>However I am a bit confused by the application.yml (<a href="https://github.com/spring-cloud-samples/configserver/blob/master/src/main/resources/application.yml" rel="nofollow">https://github.com/spring-cloud-samples/configserver/blob/master/src/main/resources/application.yml</a>) configuration file. It is about the overrides part for profile 'latice'</p>
  
  <pre><code>spring:
    profiles: lattice
    cloud:
      config:
        server:
          overrides:
            eureka:
              client:
                serviceUrl:
                  defaultZone: ${EUREKA_SERVICE_URL:http://localhost:8761}/eureka/
              instance:
                hostname: $\{CF_INSTANCE_IP:localhost}
                nonSecurePort: $\{CF_INSTANCE_PORT:$\{PORT:$\{server.port:8080}}}      
  eureka:
    instance:
      hostname: ${CF_INSTANCE_IP:localhost}
      nonSecurePort: ${CF_INSTANCE_PORT:${PORT:${server.port:8888}}}
    client:
      serviceUrl:
        defaultZone: ${EUREKA_SERVICE_URL:http://localhost:8761}/eureka/
  </code></pre>
  
  <p>Why is the overrides needed? Basically it is the same as defined in the eureka settings below.
  I also did not find anything regarding the overrides in the documentation.</p>
  
  <p>Thanks a lot for your help</p>
  
  <p>Cheers 
  Florian</p>