My Application is a Spring Boot Application with embedded tomcat. It uses a property file named "config.properties" for storing various application level properties. I am loading property file in my application as :
<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="location">
<value>classpath:config.properties</value>
</property>
</bean>
Application works fine when the property file is embedded in the jar file, but I want to externalize the property file - provide it from a folder in the system not from the jar.
I tried adding the folder to the classpath and then supplying the location of the folder using -cp
vm argument but that does not work.
So my question is how to achieve this scenario where property file is supplied from external source rather than supplied from within the jar.