applicationContext.xml中使用Properties文件
< context:property-placeholder location = "classpath:config/database.properties" />
hibernate-context.xml中使用Properties文件
<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="locations">
<list>
<value>classpath:/datasource.properties</value>
<value>classpath:/rabbitmq-config.properties</value>
</list>
</property>
</bean>