Referencing a file via classpath in spring context

Posted by Gandalf StormCrow on Stack Overflow See other posts from Stack Overflow or by Gandalf StormCrow
Published on 2010-03-26T16:43:55Z Indexed on 2010/03/26 16:53 UTC
Read the original article Hit count: 433

Filed under:
|

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?

© Stack Overflow or respective owner

Related posts about java

Related posts about spring