方法1:
方法2:
<context:property-placeholder location="classpath:com/dispatch/db.properties"/>
方法2:
<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="locations">
<list>
<value>classpath:com/dispatch/db.properties</value>
</list>
</property>
</bean>