1 IntroductionCommons Configuration The Software class library provides a common configuration interface that enables Java the application reads the configuration file from a variety of sources. the Commons Configuration provides a simple type of access and a multi-semantic config parameter demonstrated by the following code:
Double double = config.getdouble ("number");
Integer integer = Config.getinteger ("number");
Configuration pa
Need to do a httpclient upload, and then snapped online for information1. First used in the system before the Commons-httpclient upload, find the information after a meal change, and then testPostmethod filepost = new Postmethod (URL); Filepost.setparameter ("System", "Vinuxpost"); try {part part[] = Uploadrequesthelper.getpart (request); Filepost.setrequestentity (New Multipartrequestentity (part, Filepost.getparams ())); HttpClient client = new Http
How can we let log4j play its role? The answer is simple, just meet the "log4j jar package" in classpath. As has been said before, Commons-logging will automatically discover and apply log4j. So as long as it exists, it works. (Does it not exist?) Naturally does not work, commons-logging will choose other log implementation classes separately. )
Note: The configuration file log4j.properties is necessary fo
In this example, we use Commons-email to send messages and encapsulate them, support HTML content and attachments, and Commons email is a mail client component under Apache's Commons sub-project, which is based on javamail and greatly simplifies the sending and receiving of messages.The tool class supports multiple senders, multiple cc people, multiple bcc, multi
First, the conceptcommons-logging: Apache provides the earliest log façade interface. Avoid direct coupling to specific log schemes. Similar to the JDBC API interface, the specific JDBC driver implementation is implemented by the respective database providers. It is decoupled through the unified interface, but it also implements some simple log schemes internally.log4j: A classic journaling solution. Inside the log system abstraction encapsulated into logger, appender, pattern and other implemen
Del format is similar to CSV, my test file here Test.del is a set of data from the DB2 database.The MAVEN coordinates of the Apache Commons CSV are: org.apache.commons commons-csv 1.5Test procedure:Package test;import Java.io.File;import Java.io.FileInputStream;import java.io.IOException;import Java.io.InputStream;import Java.io.InputStreamReader;import Java.io.Reader;import java.util.ArrayList;imp
The Apache Commons-fileupload.jar is placed under the web-inf\lib of the application and can be used. The following example describes how to use its file upload feature.
The FileUpload version used is 1.2 and the environment is eclipse3.3+myeclipse6.0. FileUpload is based on Commons io, so make sure that the Commons IO jar package (used
Introduction to Apache Commons StringUtilsHot 4 already 1529 read 2012-05-06 21:27 tags: Apache apache commons stringutils Introduction
org.apache.commons.lang.StringUtils
StringUtils is a tool class in the Apache Commons Lang Library (Http://commons.apache.org/lang), which provides a number of useful ways to handle strings, and this article does not int
First, the principle of File upload analysis
1, file upload the necessary prerequisite
A, form's method must be post
B, the Enctype property of the form must be of type Multipart/form-data.
Enctype Default value: application/x-www-form-urlencoded
Function: Inform the server of the MIME type of the request body
Application/x-www-form-urlencoded:username=abcpassword=123
Servletrequest.getparameter (String name), which is a method that reads the type specifically
Multipart/form-data:
Apache
The Apache Commons is a very useful toolkit for solving a variety of practical common problems, and here is a summary table with details to visit http://jakarta.apache.org/commons/index.html
Beanutilscommons-beanutils provides packaging for Java reflection and introspection APIs
BETWIXTBETWIXT provides services that map JavaBean to XML documents and the opposite mappings.
Chainchain provides a "re
To tell you the truth, JCL (Jakarta Commons Logging) and log4j really got me. Not all do log, how in the JCL source package, there is a log4j package. Who's with whom? To see the JCL User's guide, to understand some. Hehe.
1, Commons-loggin introduction Jakarta Commons Logging (JCL) provides a log (logging) interface (interface), taking into account both lig
For java. lang. NoClassDefFoundError: org/apache/commons/collections/FastHashMap
During Java EE development, when data in the configuration file or user form submitted data is encapsulated in the corresponding attributes of the corresponding JavaBean object: in actual development, use the third method toolkit BeanUtils (the commons-beanutils-xxx.jar depends on the comm
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 is Base64, Hex, Phonetic and URLs, such as e
Spring-related jar dependencies were introduced through Maven to build the Spring MVC project.1, in order to use Commons FileUpload components, need to add dependencies in the Pom.xml;Properties> spring.version>3.0.7.RELEASEspring.version> junit.version>3.8.1junit.version> fileupload.version>1.2.2fileupload.version> Properties> Dependency> groupId>Commons-fileuploadgroupId>
Log (Logging) enables us to debug and track the behavior and state of an application at any time. Logging is an integral part of any larger application, so there are already a number of Third-party logging tools that eliminate the developer's own authoring of logging APIs. In fact, even the JDK has a constructed logging API. Now that you have so many choices (Log4j,jdk,logkit, etc.), usually we can always find a ready-made API that best suits our application requirements.
However, there may be e
In the general writing of the bean component, must write the setter and getter method, of course, if we already know the bean's related properties and methods, write beans is relatively simple, but too many components, repetitive writing is often boring boring. But when I need to invoke the properties of a dynamic object at some point, how do we set and get the properties of the object? Beanutils can help us to simplify the solution to this problem.The latest version is now 1.9.In the daily deve
Apache commons is an open-source project under Apache. It contains many open-source tools to solve common programming problems and reduce repetitive work.
This is the official Apache Commons website.
The following is a brief introduction to the tool:
Components
Attributes
Runtime API to metadata attributes such as doclet tags.
Bcel
Byte Code Engineering Library-analyze,
Environment
JBoss 6.0 + myeclipse 8.6 + MySQL 5.1 + Struts 2.3 + EJB 3.0
Problem
When JBoss is started, "Java. Lang. noclassdeffounderror ORG/Apache/commons/lang3/stringutils jar" exception occurs.
Solution
The commons-lang3-3.1.jar is missing, add this jar to the build path of the project or under webroot/WEB-INF/lib.
References
Http://snowfigure.diandian.com/post/2012-07-20/40029447675
Http://blog.csdn.
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.