title: Loading spring application-*.properties
body: <p>I was wondering if there is a way to dynamically reference keys in multiple application-*.properties files in a spring application. The challenge I have is the property file names can be different for each app. I have tried various combinations of spring.config.location, spring.config.name, used ClassPathResource but no luck</p>
  
  <p>For e.g. in src/main/resources I might have for application A  application.properties, application-system-X.properties, application-system-Y.properties</p>
  
  <p>For e.g. in src/main/resources I might have for application B,  application.properties, application-system-P.properties, application-system-Q.properties</p>