title: Environment Specific application.properties file in Spring Boot application
body: <p>In my Spring Boot application, i want to create environment specific properties file. The packaging type of my application in war and i am executing it in embedded tomcat. I use sts and execute the main from sts itself.</p>
  
  <ol>
  <li>Can i have environment specific properties file like application-${env-value}.properties?</li>
  </ol>
  
  <p>In above case, env-value will have values as local/devl/test/prod</p>
  
  <ol start="2">
  <li><p>Where to set the env-value file? For local, i can set it as the jvm argument through sts</p></li>
  <li><p>Who reads the application.properties in Spring Boot application.</p></li>
  <li><p>How to load the environment specific properties file? For ex - if i set the database uid,pwd, schema etc in environment specific property file, in that case will the datasource be able to understand the properties in it?</p></li>
  <li><p>Can i use application.properties and application-local.properties file at same time?</p></li>
  </ol>