关于Configuration读取properties、xml
来源:互联网 发布:合肥网络推广mdseo 编辑:程序博客网 时间:2024/06/10 04:09
import org.apache.commons.configuration.Configuration;
public Configuration getConfiguration(String filePath) throws ConfigurationException {
Configuration config;
if (filePath.endsWith("properties")) {
config = new PropertiesConfiguration(filePath);
} else if (filePath.endsWith("xml")) {
config = new PropertiesConfiguration(filePath);
} else {
config = new SystemConfiguration();
}
return config;
}
0 0
- 关于Configuration读取properties、xml
- 使用common-configuration读取xml,properties文件
- 使用common-configuration读取xml,properties文件
- common-configuration读取xml,properties文件
- common-configuration读取xml,properties文件
- common-configuration读取xml,properties文件(二)
- 【java】common-configuration读取xml,properties文件&问题解决
- Properties读取xml文件
- 读取配置文件properties xml
- Apache Common-Configuration读取.properties文件
- 关于properties文件读取
- commos configuration 获得xml,properties 的属性
- commons-Configuration解析XML或者Properties
- Mybatis Configuration.xml中properties属性定义
- Properties读取Properties和xml文件
- java 读取修改xml / properties
- 使用Properties读取XML文件
- java读取xml/.properties配置文件
- java对象与json对象间的相互转换
- 大话设计模式-第17章 在NBA我需要翻译----适配器模式
- Acdream 1416 Crazy Nim(简单博弈找规律)
- Python-format函数
- 存储过程中动态的创建表 报ORA-01031: insufficient privileges权限不足
- 关于Configuration读取properties、xml
- 词频统计
- (四)JavaScript锻炼基础小练习
- 中介者模式 详解
- Spring-----Spring Jar包
- 我所用到的第三方开源库源码阅读分析笔记
- 关于adb不能启动的问题
- 持续交付(Continuous Delivery)和持续部署(Continuous Deployment)的区别
- Latex添加中文支持和A4纸张设置