Something like this?
Code:
<!--Configurer that replaces ${...} placeholders with values from properties files-->
<bean id="myDatabase" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<description>Database specific options</description>
<property name="location">
<value>/WEB-INF/classes/hibernate.properties</value>
</property>
</bean>
<bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource">
<property name="driverClassName">
<description>JDBC Driver</description>
<value>${hibernate.connection.driver_class}</value>
</property>
<property name="url">
<description>Connection string</description>
<value>${hibernate.connection.url}</value>
</property>
<property name="username">
<description>Database username</description>
<value>${hibernate.connection.username}</value>
</property>
<property name="password">
<description>Database password</description>
<value>${hibernate.connection.password}</value>
</property>
</bean>