title: How to read my META-INF/MANIFEST.MF file in a Spring Boot app?
body: <p>I'm trying to read my META-INF/MANIFEST.MF file from my Spring Boot web app (contained in a jar file).</p>
  
  <p>I'm trying the following code:</p>
  
  <pre><code>        InputStream is = getClass().getResourceAsStream("/META-INF/MANIFEST.MF");
  
          Properties prop = new Properties();
          prop.load( is );
  </code></pre>
  
  <p>But apparently there is something behind the scenes in Spring Boot that a different manifest.mf is loaded (and not my own located in META-INF folder).</p>
  
  <p>Does anyone know how I can read my manifest app in my Spring Boot app?</p>
  
  <p><strong>UPDATE:</strong> After some research I noticed that using the usual way to read a manifest.mf file, in a Spring Boot application this is the Jar that is being accessed</p>
  
  <pre><code>org.springframework.boot.loader.jar.JarFile
  </code></pre>