http://hao.jobbole.com/apache-commons/
Apache Commons is an Apache project that provides a full-featured general-purpose Java component.
Http://jbcdn1.b0.upaiyun.com/2015/11/7d3c7fe755d47aca42d13d2910103163.png
The Apache
Apache commons-logging Usage ExamplesThis article describes how to use Apache commons-logging in your programAUTHOR:ZJ 07-3-17blog: [Url]http://zhangjunhd.blog.51cto.com/[/url]1. Commons-logginIntroductionJakarta Commons Logging (
Http://developer.51cto.com/art/201511/496849.htm
The Apache Commons contains a number of open source tools for solving problems that are often encountered in programming and reducing duplication of effort. I chose some more commonly used items to do a brief introduction. The article used a lot of online ready-made things, I just did a summary of the finishing.
First,
Java.lang.noclassdeffounderror:org/apache/commons/pool/impl/genericobjectpool
question: Log4j:warn No Appenders could to found for logger (org.springframework.context.support.FileSystemXmlApplicationContext ).Log4j:warn Please initialize the log4j system properly.Exception in thread "main" Org.springframework.beans.factory.BeanCreationException:Error creating beans with Name ' DataSource ' defi
Java -- Object Pooling technology org. apache. commons. pool2.ObjectPool, apachecommonspool
Org. apache. commons. pool2.ObjectPool provides an object pool, which can be directly used by developers to build an object pool.
There are two simple steps to use this object pool:
1. Create an object factory. org.
Java uses Apache commons codec for MD5 encryption, BASE64 encryption and decryption, and executes system commands, commonsbase64
Before writing the code, let's first introduce the two packages we will use;
Commons-codec-1.10.jarTool packages used to process common encoding methods in the Commons project, such as DES, S
The most recent development in the project needs to use the Send mail function, when the background timing task after processing to notify the caller.Java Mail API is more cumbersome to use, so here is the Apache Commons email, official website address: http://commons.apache.org/proper/commons-email/,Commons Email The
Earlier we used Mail.jar and Activation.jar two packages to write the code to send emails, although not difficult, but troublesome. Now the Apache site has a jarkata/commons/email subproject, but also for us to achieve the function of sending email, in http://jakarta.apache.org/commons/email/bag Commons-email-1.0.jar d
Apache Commons VFS is also known as Apache Commons Virtual FileSystem. is a powerful set of access to a variety of resources, the JAR package has been completely new refactoring, the latest version is 2.2. If we need to get some information of different format files in our normal work, such as file size, path, file las
When a file item is encapsulated as a fileitem object, if the file size exceeds the critical value, it will be written to a temporary file.
Cleanup method 1
When these temporary files are no longer used (if the corresponding Java. io. file is recyclable, which is better) will be automatically deleted. this will be. apache. commons. io. A harvest thread started by an instance of filecleaningtracker is si
Note:
A while ago in Java, because it is a small plug-in, so the operation is dependent on the previous project works, where the JSON conversion, the map to the JSON string, this should be a very simple code, the code is completed, the local IED test through, the following upgrade deployment to the test environment, Found that the test does not pass, always prompted this error:
Org/apache/commons/lang/exc
File upload methods are currently two commonly used, one is smartupload, one is Apache Commons fileupload.
We are here to introduce the second use of the first to upload files, pay attention to a few questions:
1 Form form, to add space
2 Form form content format to be defined as Multipart/form-data format
3 needs class Library: 1 Commons-io.jar 2commons-fil
Document directory
1. commons-io
2. commons-cli
3. commons-Lang
4. commons-Configuration
Recently I wrote a program and found that the Apache commons (http://commons.apache.org/) Library is really good, can simplify a lot
http://commons.apache.org/proper/commons-codec/download_codec.cgiOfficial Download Link:Download Apache Commons codecusing a MirrorWe recommend you with a mirror to download our release builds, but you must verify the integrity of the downloaded The files using signatures downloaded from our main distribution directories. Recent releases (hours) May is not yet is
This article is
Right
Apache
The official website
Apache Commons
Group
part of the
Configuration
the Turn
the first part of the translation
. The main reference to the
Apache
The official website
Shaoxing
, with
Households
Guide and
Javadocs
. If any
reproduced
,
Please
Statement!
Jane
mediated
[DAO] The DAO data layer code based on apache. commons. dbcp, commonsdbcp**************************************** ********************************* *** Original article: blog.csdn.net/clark_xu Xu changliang's column**************************************** ********************************
DAO code is mainly based on the dept (Department List) emp (employee information list) of scott, the default oracle user.
Concept DescriptionApache Commons CLI IntroductionDespite the rapid development of various human-computer interaction technologies, the most traditional command-line pattern is still widely used in various fields: from compiling code to system administration, the command line is favored by its simplicity and efficiency. Various tools and systems provide a detailed user manual, and some provide examples of how to develop it two times. However, there ar
First of all we need to understand what CODEC means. It is Coder + Decoder = Codec, which is the encoder decoder. That is, the encoder is also the decoder.Website address: http://commons.apache.org/proper/commons-codec/Apache Commons Codec (TM) software provides implementations of common encoders and decoders such as Base64, Hex, Phonetic and URLs.The main supply
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.