天天看点

spring读取加载properties文件

<bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">  

<property name="locations">  

<list>  

                 <value>classpath:dbconfig.properties</value>  

            </list>  

        </property>  

</bean> 

继续阅读