方法1:
<context:property-placeholder location="classpath:com/dispatch/db.properties"/>
方法2:
<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfi
</bean>
转自:http://blog.sina.com.cn/s/blog_76519a4801011j7d.html