title: How to load custom application-xxx.yml file out of other application-xxx.yml in spring boot without using profile annotation solution
body: <p>I would like to load single <strong>application-xxx.yml</strong> for production environment out of three <strong>application-xxx.yml</strong> and that is decided by the value of environment variable (in my case its) <strong>country</strong>. </p>
  
  <p><strong>Explanation:</strong></p>
  
  <p>I have my spring boot microservice (REST api) deployed in different aws regions for different countries.</p>
  
  <p>I have added 3 different yml/properties files under resource folder such as:</p>
  
  <p><strong>For USA > application-usa.yml.</strong></p>
  
  <p><strong>For Germany >  application-ger.yml .</strong></p>
  
  <p><strong>For India > application-ind.yml .</strong></p>
  
  <p>(All three yml files contains similar properties but different values for them)</p>
  
  <p>So lets say, if env. variable <strong>country == USA</strong> then <strong>application-usa.yml</strong> file should be loaded but not rest of the mentioned application-xxx.yaml files 
  and so on .....</p>
  
  <p>So in the end , only one yaml file out of above 3, should get loaded depending on value for env variable  <strong>country</strong> </p>
  
  <p>So how can we achieve this?</p>