需求:
利用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有区别
- 浏览: 1216438 次
- 性别:
- 来自: 北京
最新评论
-
masuweng:
嗯,写的很好
Mysql之Incorrect string value: '\xF0\x9F\x98\x89 \xE6...' -
秋水涛静:
来来来 你告诉我你贴的这代码有什么用??你给的下载包又有什么 ...
利用diyUpload做多图片上传及预览 -
andseny:
如果可以的话,求一份源码,谢谢 邮箱:846526948@q ...
利用diyUpload做多图片上传及预览 -
alloyer:
不错!可以使用,已验证。
Spring与jcaptcha集成 -
bewithme:
这和我去官网看有啥区别?
web之日期组件My97DatePicker
apache common包的configuration2使用
- 博客分类:
- Java
相关推荐
apache commons api beanutils collections configuration lang logging
Apache Commons Configuration
Apache Commons是一个非常有用的工具包,解决各种实际的通用问题。(附件中提供了该工具包的jar包,及源文件以供研究) BeanUtils Commons-BeanUtils 提供对 Java 反射和自省API的包装 Betwixt Betwixt提供将 ...
官方commons-configuration-1.10的jar包
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....
Commons-beanutils-API Commons-collections-API Commons-configuration-API Commons-lang-API Commons-logging-API Dom4j_API java api javascript Struts API J2EE API
包括以下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 ...
复制到D:\apache2\Apache2\modules下,则在点击 开始|所有程序|Apache HTTP Server 2.0.50|Configure Apache Server|Test Configuration 时提示"Cannot load D:/apache2/Apache2/modules/...
包含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...
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 ...
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 ...
org.apache.http.client.config Client configuration APIs. org.apache.http.client.entity Client specific HTTP entity implementations. org.apache....
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 ...
该属性指定Struts 2使用的FreeMarker管理器.该属性的默认值是org.apache.struts2.views.freemarker.FreemarkerManager,这是Struts 2内建的FreeMarker管理器. struts.freemarker.wrapper.altMap 该属性只支持true和...
org.apache.hadoop.io.compress.BZip2Codec, org.apache.hadoop.io.compress.SnappyCodec, com.hadoop.compression.lzo.LzoCodec, com.hadoop.compression.lzo.LzopCodec <name>io.compression.codec....
• 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 ...
Support for Apache.............................................................................................2 How Apache Works..........................................................................
│ │ │ 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 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的测试工程,JUnit测试用例和WEB服务。 内涵完整jar包,解压直接可用,包括一个表文件。 Eclipse3.2+Tomcat/5.5+jdk1.5.0_17 - ...