I want to pick up a property file app.properties NOT from the class path resource. The reason is I am using maven to build a jar file. The jar file is picking up properties from inside the jar. So, others cannot change the property files.
I want the property file to be configurable.
<bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="locations">
<list>
<value>app.properties</value>
</list>
</property>
</bean>
works fine but
<bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="locations">
<list>
<value>"C:\\Temp\\app.properties"</value>
</list>
</property>
</bean>
does not work.
Is it possible to place property files in the target folder so the jar can pick it up from outside the jar?