title: Spring yaml does not work on aws server
body: <p>I have a spring boot app with this yaml:</p>
  
  <pre><code>    ---
  spring:
      profiles: production
  server:
      port: 8080
  
  servicesUrl:
    aaa:  aaa.aaa.aaa:9090
  </code></pre>
  
  <p>I create the jar using gradle assemble.</p>
  
  <p>When I run it locally: </p>
  
  <pre><code>java -Dspring.profiles.acitve=production -jar aaa.jar 
  </code></pre>
  
  <p>All works well.</p>
  
  <p>I scp the jar to the server and when I run the exact same command  I get:</p>
  
  <pre><code>BeanCreationException: Error creating bean with name 'aaaController': Injection of autowired dependencies failed; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'servicesUrl.aaa' in value "${servicesUrl.aaa}"
  </code></pre>
  
  <p>I have to state that the different ports are being served according to the profile, both locally and AWS.</p>
  
  <p>This is the line in the class:</p>
  
  <pre><code>@Value("${servicesUrl.aaa}")
  private String aaaServiceUrl;
  </code></pre>
  
  <p>What did I do wrong?</p>