title: Use single profile-specific property file from multiple application.properties files
body: <p>I have a few spring-boot microservices and I want to use a single profile-specific property file for all the microservices. profile-specific property file should be outside of the jars.</p>
  <p>example:</p>
  <p>The <strong>application-common-profile.properties</strong> file and jar files are inside the same folder</p>
  <pre><code>java -jar Microservice-1.jar --spring.config.location=classpath:/application.properties --spring.profiles.active=common-profile
  
  java -jar Microservice-2.jar --spring.config.location=classpath:/application.properties --spring.profiles.active=common-profile
  </code></pre>
  <p>the above commands won't take the common-profile properties. please help to achieve this. Thanks.</p>
  <p><strong>IMPORTANT DETAILS</strong></p>
  <p>This jar file doesn't contain 'application-common-profile.properties' file. this file resides outside the jar but in the same folder. if I put my 'application.properties' file inside the same foder then it is working(retrieving the properties) with the below command.</p>
  <p><code>java -jar Microservice-1.jar --spring.config.location=C:/folderpath/ --spring.profiles.active=common-profile</code></p>
  <p>I can place other microservices 'application.properties' files in same folder with different names(ex: application-microservice-2.properties). and also the profile property files with different names.(ex: application-microservice-2-common.properties )  It's okay having different application.properties files. but need to have one common profile property file.</p>
  <p><strong>FIXED</strong></p>
  <p>I added common profile property file(application-common.properties) and jars in same folder and run below commands simply and it is working. I think adding unnecessary arguments was the problem.</p>
  <pre><code>java -jar Microservice-1.jar --spring.profiles.active=common
  java -jar Microservice-2.jar --spring.profiles.active=common
  </code></pre>