title: Spring Eureka Client does not see server port from configuration file
body: <p>I have an application based on spring-boot which is deployed to jar. It has a form of  maven multi-module project and contains following parts:</p>
  
  <ul>
  <li>web</li>
  <li>service</li>
  <li>repository</li>
  <li>model</li>
  </ul>
  
  <p>My web module needs all others to build itself and contains in its resource directory following file:</p>
  
  <ul>
  <li>bootstrap.yml</li>
  </ul>
  
  <p>The bootstrap.yml contains following configuration:</p>
  
  <pre><code>eureka:
    client:
      eureka-server-port: 8761
  server:
    port: 8763
    context-path: /foo-service/rest
  spring:
    application:
      name: foo-service
  </code></pre>
  
  <p>So I am expecting that during wake up it will use port 8761 and register itself to Eureka service. Because of some reason when I debug at:</p>
  
  <pre><code>org.springframework.cloud.netflix.eureka.EurekaClientAutoConfiguration#eurekaInstanceConfigBean
  </code></pre>
  
  <p>the instance of EurekaInstanceConfigBean contains following values:</p>
  
  <ul>
  <li>instanceId = 172.20.39.197:foo-service:8763</li>
  <li><strong><em>nonSecurePort = 8080</em></strong></li>
  </ul>
  
  <p>What is weird is <strong>nonSecurePort</strong> set on 8080 instead of 8763. In my other services (which works correctly) the <strong>nonSecurePort</strong> has the same value as last part of <strong>instanceId</strong>. Only in foo-service the value is different. </p>
  
  <p>The reason of that is:</p>
  
  <pre><code>@Value("${server.port:${SERVER_PORT:${PORT:8080}}}")
  int nonSecurePort;
  </code></pre>
  
  <p>can't find the configuration and returns the default value. But why?
  I have checked the foo.jar created by maven and the bootstrap.yml is there in correct place (BOOT-INF/classes/bootstrap.yml) with correct values...</p>
  
  <p>Do anyone have any idea what may be wrong?</p>