I need a quick help here. Hopefully someone will be able to help.
I am having a spring batch application which loads the database configuration from a properties file.
It takes the batch properties file from the context through one of the xml as below.
<context:property-placeholder location="classpath:batch.properties"/> // This is mentioned in one of the xml files and I want to load this from an external path
This batch.properties file is packaged within the JAR file.
But I want the JAr file to read the batch.properties from the external location which I would specify.
Can anybody tell me how this can be achieved.
Thanks in advance.
Oracle Certified Professional: Java SE 6 Programmer
posted 4 years ago
Anyways, I figured it out.
This is to those who would want the file to be read using relative path.