title: How to externalize Spring Boot application.properties to tomcat/lib folder
body: <p>I need a configuration free, deployable war, myapp1.war that can retrieve the configuration files from the tomcat/lib folder.
  As I have other web applications coexisting on the same Tomcat: myapp2.war, myapp3.war, I need this layout:</p>
  
  <pre><code>tomcat/lib/myapp1/application.properties
  tomcat/lib/myapp2/application.properties
  tomcat/lib/myapp3/application.properties
  </code></pre>
  
  <p>This way I can build the war files without any properties files inside the war and deploy on any server.</p>
  
  <p>I have read the <a href="http://docs.spring.io/spring-boot/docs/current/reference/html/boot-features-external-config.html#boot-features-external-config-application-property-files">Spring documentation</a> but it explains how to set the location when running as a jar:</p>
  
  <pre><code>java -jar myapp.jar --spring.config.location=classpath:/default.properties,classpath:/override.properties
  </code></pre>
  
  <p>I cannot figure out how to do this for the case of multiple coexisting war files.</p>
  
  <p>I would like to know if this is possible or should I give up on Spring Boot and go back to the traditional Spring MVC applications.</p>