title: Spring boot 2.0.4 application properties not being overridden by command line json
body: <p>I am using spring boot 2.0.4 and creating an executable jar.</p>
  
  <p>I have below properties defined in my application.properties</p>
  
  <pre><code>configserviceendpoint=devendpoint
  </code></pre>
  
  <p>I am following <a href="https://docs.spring.io/spring-boot/docs/current/reference/html/boot-features-external-config.html" rel="nofollow noreferrer">spring docs</a> to pass the properties as .json and tried running the application using below commands</p>
  
  <blockquote>
    <ol>
    <li><p>java -Dspring.application.json='{"configserviceendpoint":"prod end point"}' -jar myapp.jar</p></li>
    <li><p>java -jar myapp.jar --spring.application.json='{"configserviceendpoint":"prod end point"}'</p></li>
    </ol>
  </blockquote>
  
  <p>While trying to access the property in my code it still shows the value defined in <code>application.properties</code> and not the one which is being passed in command as .json</p>
  
  <p>Thanks.</p>