title: Spring Boot Banner reporting wrong java version
body: <p>At the bottom of our <code>banner.txt</code>, we have the following</p>
  
  <pre><code>Running Spring Boot ${spring-boot.version} on java ${java.version} in environment ${ccic.environ}
  </code></pre>
  
  <p>which starts up with</p>
  
  <pre><code>Running Spring Boot 2.0.5.RELEASE on java 1.8.0_144 in environment uat
  </code></pre>
  
  <p>We had a bit of a scare today because someone noticed it says <code>1.8.0_144</code> for the <code>java.version</code>, however we should be running  <code>1.8.0_131</code>.  After further investigation, we can confirm that we are running with <code>1.8.0_131</code>.  </p>
  
  <p>I was curious where <code>1.8.0_144</code> was coming from.  It seems <code>MANIFEST.MF</code> contains the value of <code>1.8.0_144</code> for the key <code>Build-Jdk</code>, presumably java on the build server is wrong.  Is that were spring is reading it from?  </p>
  
  <p>It surprises me that <code>java.version</code> would prefer <code>MANIFEST.MF</code> over the runtime.   Am I off in my thinking?  Why is spring boot not returning the correct java version?  I tried looking in the spring source, but finding "java.version" or "javaversion" hasn't been helpful.</p>