使用Commons Configuration可以很好的管理我们的配置文件的读写,官网:http://commons.apache.org/configuration/
它支持对配置文件的读取,保存,运行期加载,操作非常方便。下面简单的一下代码示例一下,具体的其他操作文档可以去官方找到:
需要用到commons-lang,commons-collections,commons-logging,log4j jar包



















































Configuration 的参数可能来自下面的资源:
Properties files XML documents,Property list files (.plist),JNDI,JDBC Datasource,System properties, Applet parameters,Servlet parameters