Tuesday, November 18, 2008

Web application configuration on Tomcat using Spring

In order to get two sets of independent configuration (property) files, one for development and one for production, one can do the following:

In the web-inf folder place a property file, e.g. act.properties
In the applicationContext.xml define:




WEB-INF/act.properties
file:///${CATALINA_HOME}/act.properties



No comments: