title: spring boot application properties based on spring profiles
body: <p>Hi I want my spring boot web project to be deployed both on development and production environment and it should be run on specific profile based setting.</p>
  
  <p>I googled on how to do that, and first of all that I have searched is defining application-{profile name}.properties properly in the src/main/resources classpath.</p>
  
  <p>Now the problem is how to set profiles.</p>
  
  <p>Since I am working on tomcat 8 in linux, there should be some configuration but I don't know how to do that.</p>
  
  <p>and I am also curious that when my project is packaged as war file, java -jar {filename} -Dspring.active.profile=blahblah will not be work, but I think there is an alternative way.</p>
  
  <p>plus, is there an way to set profile on tomcat 8 in Windows 10 ?</p>
  
  <p>Thanks you</p>