xml中使用properties配置
2015-12-08 00:00
351 查看
在xml中加入:
<bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="locations">
<list>
<value>/WEB-INF/config/jdbc.properties</value>
</list>
</property>
</bean>
使用方法:${key}
<bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="locations">
<list>
<value>/WEB-INF/config/jdbc.properties</value>
</list>
</property>
</bean>
使用方法:${key}
相关文章推荐
- Nginx websocket支持配置
- shell脚本中整数值比较
- log4j.properties详解与例子
- centos 7上ambari安装试用
- 十四、转到 linux
- 硬盘与文件系统
- DNS(三)高级应用
- Linux系统启动流程
- rsync+inotify实现数据同步传输
- 硬盘分区和挂载
- Linux计划任务
- 文本处理三剑客之sed基本用法
- Linux的文本处理工具grep及初识正则表达式
- LVM逻辑卷管理
- Linux进程管理
- 基于DNS轮询实现Web站点的负载均衡
- Linux文件查找
- 文件共享服务之Samba
- Linux下远程连接SSH和Openssh应用
- DNS(二)Linux下正反向解析配置和客户端查询工具