<bean id="ckcPlaceholderProperties" class="org.springframework.beans.factory.config.PreferencesPlaceholderConfigurer">
<property name="locations">
<list>
<value>classpath:default.properties</value>
</list>
</property>
<property name="order" value="2"></property>
<property name="ignoreUnresolvablePlaceholders" value="true" />
</bean>
<bean id="pathConfig" class="com.movitech.erms.business.configuration.PathConfig"/>
# default.properties file content
local.attachment.path=1
attachment.resume.path=2
interview.attachment.path=D:\My Document
/**
* PathConfig 注入的类文件
*
* @author Tony.Wang
* @time 2014/4/28 0028 17:31
*/
public class PathConfig { @Value("${local.attachment.path}")
private String localAttachmentPath; @Value("${attachment.resume.path}")
private String attachmentResumePath; @Value("${interview.attachment.path}")
private String interviewAttachmentPath; public String getLocalAttachmentPath() {
return localAttachmentPath;
} public String getInterviewAttachmentPath() {
return interviewAttachmentPath;
} public String getAttachmentResumePath() {
return attachmentResumePath;
}
}
@Resource
private PathConfig pathConfig;

最新文章

  1. DOM动画效果的基础入门2
  2. WebForm增删改查
  3. soapUI请求参数Style与Level使用
  4. 使用AdvinceInstaller把exe或者msi重新包装成为msi静默安装程序
  5. javascript 键盘输入过滤,只能输入数字,小数一位且只能输入5
  6. MapReduce实现二度好友关系
  7. 20160808_Shell书
  8. 获取iOS设备的内存状况(转)
  9. C#客户端链接网页需要用到的WebClient
  10. 基于node/mongo的App Docker化测试环境搭建
  11. 关于void*函数返回
  12. 04737_C++程序设计_第4章_类和对象
  13. [Sdoi2017]相关分析 [线段树]
  14. ●UOJ 34 多项式乘法
  15. PostgreSQL 数据库备份
  16. java实操之使用jcraft进行sftp上传下载文件
  17. Vue(二) 计算属性
  18. 经典面试题SALES TAXES思路分析和源码分享
  19. tex---就是tex文件,这个地球人都知道,是文章所在的主要文件
  20. hdoj:2028

热门文章

  1. 为七牛云存储开发的PHP PEAR 包:Services_Qiniu
  2. 用javascript实现全选/反选组件
  3. 安装SQL Server Management Studio Express错误码是29506
  4. Sharepoint学习笔记—习题系列--70-573习题解析 -(Q85-Q87)
  5. 数组拷贝 copyOf()
  6. 自定义cell
  7. Android分辨率适配心得
  8. System Center的一些资料收集
  9. 【nginx】关于fastcgi_cache
  10. ERP产品价格成本计算的几个方法(转)