Tuesday, March 19, 2013

Spring Properties files outside the application

Placing the propery file out of the war file is best practice such that properties can be updated based on the environment by deployment team instead of updating the war file for different enviornment.

Below code is used to implement this logic using spring: