Spring配置文件中使用外部.properties属性文件
.properties配置文件中配置xxx=yyy,在ApplicationContext*.xml文件中通过${xxx}得到yyy:
关于PropertyPlaceholderConfigurer:
http://wangyu.iteye.com/blog/314835
结合使用PropertyPlaceholderConfigurer 和 org.apache.commons.configuration.XMLConfiguration:
http://stackoverflow.com/questions/3163838/propertyplaceholderconfigurer-reads-from-xml-file-apache-commons-configuration