`
小网客
  • 浏览: 1216438 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

apache common包的configuration2使用

    博客分类:
  • Java
阅读更多

需求:
利用apache的common包中的configuration2进行属性文件的操作
实现:
public static PropertiesConfiguration loadProperties(File file)
        throws ConfigurationException {
    Parameters params = new Parameters();
    PropertiesConfiguration configuration = new FileBasedConfigurationBuilder<PropertiesConfiguration>(
            PropertiesConfiguration.class).configure(
            params.properties().setFile(file)).getConfiguration();
    return configuration;
}
configuration2和configuration1有区别

摘自:www.xhuojia.com/zhuanlan/2375701521.html

分享到:
评论

相关推荐

    apache common api(chm)

    apache commons api beanutils collections configuration lang logging

    commons-configuration-1.9.jar

    Apache Commons Configuration

    apache-commons源码及jar文件

    Apache Commons是一个非常有用的工具包,解决各种实际的通用问题。(附件中提供了该工具包的jar包,及源文件以供研究) BeanUtils Commons-BeanUtils 提供对 Java 反射和自省API的包装 Betwixt Betwixt提供将 ...

    官方commons-configuration-1.10的jar包

    官方commons-configuration-1.10的jar包

    Apache Commons 所有包最新版本 含SRC (6/7)

    3.2.1-src.zip commons-configuration-1.5-src.zip commons-configuration-1.5.zip commons-daemon-1.0.1.tar.gz commons-dbcp-1.2.2-src.zip commons-dbcp-1.2.2.zip commons-dbutils-1.1-src....

    Apache commons API(整套全版)

    Commons-beanutils-API Commons-collections-API Commons-configuration-API Commons-lang-API Commons-logging-API Dom4j_API java api javascript Struts API J2EE API

    最新common.apache.*.jar下载

    包括以下jar包: Attributes Beanutils Betwixt Chain CLI Codec Collections Configuration Daemon DBCP DbUtils Digester Discovery EL Email Exec FileUpload IO JCI Jelly JEXL JXPath Lang Launcher Logging ...

    配置阿帕奇1.PHP4.23在WindowsXP下的IIS和Apache2两种服务器上的安装实例 http://www.phpe.net/articles/260.shtml

    复制到D:\apache2\Apache2\modules下,则在点击 开始|所有程序|Apache HTTP Server 2.0.50|Configure Apache Server|Test Configuration 时提示"Cannot load D:/apache2/Apache2/modules/...

    hadoop-2.10.0jar.zip

    包含hadoop平台Java开发的所有所需jar包,例如activation-1.1.jar apacheds-i18n-2.0.0-M15.jar apacheds-kerberos-codec-2.0.0-M15.jar api-asn1-api-1.0.0-M20.jar api-util-1.0.0-M20.jar asm-3.2.jar avro-1.7.7...

    Struts2上传所需jar包

    other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the ...

    apache hadoop 2.7.2.chm

    Compatibilty between Hadoop 1.x and Hadoop 2.x Encrypted Shuffle Pluggable Shuffle/Sort Distributed Cache Deploy MapReduce REST APIs MR Application Master MR History Server YARN Overview YARN ...

    httpclient4.5.5.chm

    org.apache.http.client.config Client configuration APIs. org.apache.http.client.entity Client specific HTTP entity implementations. org.apache....

    Apache Geronimo 2.1_ Quick Reference.pdf

    The Common Secure Interoperability Version 2 (CSIv2) protocol 150 Securing the server directory 150 Securing the Administration Console, JMX server, and deployer 151 Securing the embedded Derby ...

    Struts2属性文件详解

    该属性指定Struts 2使用的FreeMarker管理器.该属性的默认值是org.apache.struts2.views.freemarker.FreemarkerManager,这是Struts 2内建的FreeMarker管理器. struts.freemarker.wrapper.altMap 该属性只支持true和...

    hadoop-lzo-0.4.20.jar

    org.apache.hadoop.io.compress.BZip2Codec, org.apache.hadoop.io.compress.SnappyCodec, com.hadoop.compression.lzo.LzoCodec, com.hadoop.compression.lzo.LzopCodec &lt;name&gt;io.compression.codec....

    PHP和MySQL5从入门到精通

    • Common installation pitfalls and their resolutions • The purpose, scope, and default values of many of PHP’s most commonly used configuration directives • Various ways in which you can modify ...

    pro_apache_third_edition..pdf

    Support for Apache.............................................................................................2 How Apache Works..........................................................................

    前端-后端java的Util类的工具类

    │ │ │ frame-sourcefiles-org.apache.ibatis.logging.log4j2.html │ │ │ frame-sourcefiles-org.apache.ibatis.logging.nologging.html │ │ │ frame-sourcefiles-org.apache.ibatis.logging.slf4j.html │ ...

    Automation through Chef Opscode(Apress,2014)

    Automation through Chef Opscode provides an in-depth ... OS configuration for Windows, Linux, and Unix, provisioning and configuration of web servers like Apache along with popular databases like MySQL

    Struts2+Spring3+MyBatis3完整实例

    网上的东西好大多都不能直接用,自己结合网上资料做了一个Struts2+Spring3+MyBatis3的测试工程,JUnit测试用例和WEB服务。 内涵完整jar包,解压直接可用,包括一个表文件。 Eclipse3.2+Tomcat/5.5+jdk1.5.0_17 - ...

Global site tag (gtag.js) - Google Analytics