spring配置读取properties文件

来源:互联网 发布:吉首大学网络教学平台 编辑:程序博客网 时间:2024/05/18 07:03
        配置applicationContext.xml文件<!-- propertiesReader --><bean id="propertiesReader"class="org.springframework.beans.factory.config.PropertiesFactoryBean"><property name="locations"><list><value>classpath:init.properties</value></list></property></bean><context:property-placeholder location="classpath:init.properties" />

原创粉丝点击