spring读取properties的方法
首先在配置文件中配置PropertyPlaceholderConfigurer
单个配置文件:
<bean id="propertyConfigurer" value="classpath:jdbc.properties"/>
</bean>
多个配置文件:
<bean id="propertyConfigurer" value="${jdbc.url}"/>
发布时间: 2013-10-31 12:03:52 作者: rapoo
spring读取properties的方法
首先在配置文件中配置PropertyPlaceholderConfigurer
单个配置文件:
<bean id="propertyConfigurer" value="classpath:jdbc.properties"/>
</bean>
多个配置文件:
<bean id="propertyConfigurer" value="${jdbc.url}"/>