spring 配置加载外部文件的两种方式
2016-08-09 23:18
447 查看
第一种:
<bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"> <property name="locations"> <list><value>classpath:config.properties</value></list> </property> </bean>
第二种:
<context:property-placeholder location="classpath:config.properties"/>
相关文章推荐
- spring加载配置文件的两种方式
- Spring加载配置文件的两种方式
- Spring学习-03:ApplicationContext加载配置文件的两种方式
- spring加载配置文件的 两种方式
- Spring加载配置文件的方式
- spring 中加载xml配置文件的方式
- spring 中加载xml配置文件的方式.
- spring的配置文件在web.xml中加载的方式
- Spring中加载XML配置文件的方式
- Spring加载xml配置文件的方式总结
- Spring中加载配置文件的方式
- 加载spring配置文件的三种方式
- Spring的ApplicationContext加载多个配置文件的三种方式
- spring 中加载xml配置文件的4种方式
- spring 配置文件加载方式
- Unity加载配置文件的两种方式
- spring 中加载xml配置文件的方式
- 两种方式加载配置文件
- Spring中加载xml配置文件的方式
- Spring配置文件applicationContext.xml的两种拆分方式