XXXdataxml:
<bean id=dataSource
class=orgspringframeworkjdbcdatasourceDriverManagerDataSource>
<property name=driverClassName>
<value>${jdbcdriverClassName}</value>
</property>
<property name=url>
<value>${jdbcurl}</value>
</property>
<property name=username>
<value>${jdbcusername}</value>
</property>
<property name=password>
<value>${jdbcpassword}</value>
</property>
</bean>
applicationContextxml:
<bean id=propertyConfigurer
class=orgspringframewonfigPropertyPlaceholderConfigurer>
<property name=locations>
<list>
<value>classpath:jdbcproperties</value>
</list>
</property>
</bean>
jdbcproperties:
jdbcdriverClassName=oraclejdbcdriverOracleDriver
jdbcurl=jdbc:oracle:thin:@::dbname
jdbcusername=username
jdbcpassword=password