首页  :: 新随笔  :: 管理

spring 配置文件中使用properties文件 配置

Posted on 2013-12-04 09:40  季枫  阅读(563)  评论(0)    收藏  举报

配置Bean载入properties文件:

	<bean id="propertyPlaceholderConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"
		p:location="/WEB-INF/ut.properties" />

 

在pring文件中使用那个properties中的参数:

  <constructor-arg index="1" value="${ut.securityContext.serviceProperties.service}" />

智读 | 成都会领科技有限公司官网 | 智读App下载 | 每天听本书的博客 | |