有兩種方法:
<context:property-placeholder location="classpath:jdbc.properties"/>spring
------------------------孤獨的分割線---------------------------------------spa
<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="locations">
<list>
<value>classpath:jdbc.properties</value>io
<value>classpath:jdbc2.properties</value>
</list>
</property>
</bean>class
---------------------結束-------------------------此致敬禮---------------------jdbc