Referencing a file via classpath in spring context
- by Gandalf StormCrow
I'm trying to set org.springframework.beans.factory.config.PropertyPlaceholderConfigurer spring bean, I have jdbc.properties in src/main/config .. when I put this file in src/main/resources and put classpath: in value my app deploys successfuly.
This works when jdbc.properties is located in src/main/resources
<property name="location" value="classpath:jdbc.properties" />
However I'm required to put any configuration inside src/main/config , how do I point springs towards this location in the right way?