title: Unable to read JVM arguments in Spring boot
body: <p>I am running a spring boot jar in command prompt passing jvm arguments like </p>
  
  <pre><code>java -jar myjarname.jar -Denvironment=dev 
  </code></pre>
  
  <p>or </p>
  
  <pre><code>java -jar myjarname.jar --environment=dev
  </code></pre>
  
  <p>and trying to read the value <code>environment</code> in my application using System.getProperty("environment"). But it is giving me null value. Please help!!</p>