I have a properties file outside of my war file, which is used by the system administrator to disable certain system functions. It works fine on my local machine, but when we deployed to the development environment, the properties file was not loaded and the application failed to start. I was wondering if there is a way to declare default values ββin my ApplicationContext application for values ββthat usually come from a properties file.
I currently have this to read the properties file:
<util:properties id="myProperties" location="file:${catalina.home}/webapps/myProperties.properties"/>
This works great until we forget to put the properties file in the right place. Is there a way to declare default values ββor maybe read from another file if this file is not found?
thanks
java spring properties configuration
blong824
source share