I tried following but I am getting io exception that file could not be opened because it is not found. I copied the properties file in my src folder in designated package.
Code:
<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="locations">
<value>classpath:com/mycompany/abc/def/jdbc.properties</value>
</property>
</bean>
<bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
<property name="driverClassName" value="${driverClassName}"/>
<property name="url" value="${driverClassName}"/>
<property name="username" value="${driverClassName}"/>
<property name="password" value="${driverClassName}"/>
</bean>
I also tried following and hard coded the location and got the same problem
Code:
<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="locations">
<value>c://jdbc.properties</value>
</property>
</bean>
Any idea what am I doing wrong ? Any help is greatly appreciated.