title: Different property variable for Local and prod Environment (Spring)
body: <p>I am working on an Spring web application in where I need to have variable's that will have different value in local environment and other value in production environment.</p>
  
  <p>For Eg (file upload directory). My file upload directory is different for local and prod environment.</p>
  
  <p>Currently I am doing it by checking the host name (if 'localhost' then A else B) and taking this approach. By there is another way to solve this problem via property files, Does anybody provide me pointers to how to approach that?</p>