title: How to resolve placeholder in properties file with values from another properties file in spring boot application
body: <p>My spring boot application has below properties files.</p>
  
  <pre><code>src/main/resources/config/DEV/env.properties
  mail.server=dev.mail.domain
  
  src/main/resources/config/QA/env.properties
  mail.server=qa.mail.domain
  
  src/main/resources/config/common/env.properties
  mail.url=${mail.server}/endpoint
  </code></pre>
  
  <p>Is it possible to load "common/env.properties" so that it's placeholders will be resolved using the given environment specific properties file. For DEV environment, we want the placeholders in "common/env.properties" to be resolved using values from "DEV/env.properties".</p>
  
  <p>There are answers about how to load multiple properties files and profile based loading but could not find an answer for this particular use case.</p>
  
  <p>Thanks in advance.</p>