Jakarta commons: clever use of classes and components 2
2003-10-10
Browsing times: 801
In the previous articleArticle, We willJakarta commonsThe components are divided into five categories, and the Web class and other classes are introduced. This article introduces the XML class and the packaging class. The last article will introduce the tool cla
With java. the role of the lang Package is similar. Commons Lang APIS also provide some basic and common operations and processing, such as automatically generating toString () results and automatically implementing hashCode () and equals () methods, Array Operations, enumeration, processing of dates and times, and so on.
All the package names of this group of Apis start with org. apache. commons. lang. Th
I recently looked at the project code and saw two jar packages in the project, one of which is commons. httpclient-3.1.jar, one is httpclient4.2.1.jar, very puzzled, and the two packages have HttpClient class, but the package name is not the same, and then find some information, check the relationship between the two packages.
The dependency in the pom file of httpclient4.2.1.jar is as follows:
650) this. width = 650; "src =" http://www.bkjia.com/uplo
The Jakarta Commons project provides quite a variety of APIs. The Commons Lang we learned earlier is only a small part of the core of many APIs. There are a considerable number of sub-projects under Commons to solve various practical problems in different directions. BeanUtils is one of them and is used to process JavaBeans. It uses the reflection mechanism of Ja
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 (JCL) provides a log interface (interface), taking into account both lightweight and non-de
());}if(logger.isinfoenabled ()) {Logger.info (NewException ("testlog4j Info Demo."). GetMessage ());} Logger.error (NewException ("testlog4j error Demo."). GetMessage ()); Logger.fatal (NewException ("testlog4j fatal demo."). GetMessage ());2, Commons logging
Overview
Apache has made a series of log toolkits for different development languages, can be used on Java,. NET, PHP, C + +, and has a consistent style of operation for these log
One, why use commons-logging+log4j? Commons-logging and log4j are open source projects under Apache. The purpose of commons-logging is to provide a unified interface for "All Java log implementations" that decouple the project from the Log Implementation tool, its own log function is weak (only a simple simplelog), so it is generally not used alone. The log4j fea
On debian4, install java5: sudo aptitude install sun-java5-jdk with Aptitude
The version information running in java-version is similar to: --------------------------------------- java version "1.5.0 _ 17" Java (TM) 2 Runtime Environment, Standard Edition (build 1.5.0 _ 17-b04) Java HotSpot (TM) client VM (build 1.5.0 _ 17-b04, mixed mode, sharing) ------------------------------------------ the last sharing is very strange. If this information is not found in the installed version, aptitude inst
If for commons-loging, log4j, slf4j, Logback, etc. are already very clear, you can ignore this article. A few times to solve the log conflict problem when the simple summary of these concepts, I hope that the foundation does not understand the students can help, of course, if this piece has a deeper understanding of the students, but also contribute their knowledge and insight.First, Conceptcommons-logging : Apache provides the earliest log façade int
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 Commons project consists of the following three parts: a functioning project: a reusable set of Java components. Sandbox project: Java Compon
Logging allows us to debug and track the behavior and status of an application at any time. Logging is an indispensable part of any large-scale application. Therefore, there are already many third-party logging tools that allow developers to write their own logging APIs. In fact, even JDK has a constructed logging API. Since there are already so many options (log4j, JDK, logkit, and so on), we can always find the ready-made API that best suits our application requirements.
However, exceptions ma
Introduction:The Apache Commons project is designed specifically to share the correct primary goal of building and maintaining reusable Java components. Sharing the correct information is a local collaboration and communication. developers from the entire Apache community work together on projects that are shared by Apache projects and Apache users.
The Apache Commons project consists of three parts:
The
Sample command line tool development using Apache Commons CLI
Directory
ConceptsIntroduction to Apache Commons CLICLI definition phaseCLI parsing phaseCLI inquiry stageSample CodeConceptsIntroduction to Apache Commons CLI
Apache Commons CLI is a toolkit for parsing command line Input in Apache. It also provides the fun
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 of tedious tasks in Java, helped us create a
Recently, a project is released in WebSphere, which often causes problems that cannot be generated by logs. I searched the internet for some information about log4j and commons-logging. Now I have recorded it below:
First, let's talk about the origins of these two packages. log4j is a common package that Apache is used to record logs in projects, why does Apache need a commons-logging package? I think it's
Commons collections is a heavyweight and provides a good complement to the java standard collections API. I don't know anyone else. For myself, let me use Java. util. collection and its subclass, plus Java. util. the operation method provided by the collections class can solve some simple data structure problems. If it is a little complicated, it may be a headache. I need to insert such a small logic into many details, or you may feel that it is too r
Jakarta commons configuration Study Notes
Keywords: Jakarta, commons, Configuration Runtime Dependencies
Some components required for running:
Commons beanutils
Commons collections
Commons Digester
Commons Lang
One, before the log operation is generally in a class to add the following code: Import org.apache.log4j.logger;//introduced the LOG4J package private static final Logger LOG = Logger.getlogger (Test.class); Second, later saw someone else's code is written like this: Import Org.apache.commons.logging.log;import org.apache.commons.logging.logfactory;// Introduced is the commons-logging package private static Log logger = Logfactory.getlog (Accountactio
Jakarta commons logging Study Notes
To be honest, jcl (Jakarta commons logging) and log4j have really blinded me. Isn't it all about log? Why is there a log4j package in the jcl source code package? Who and who? You can only understand the jcl user guide. Hehe.
1. Introduction to commons-Loggin
Jakarta commons log
Catalog1 . Description2. Analysis3. POC4. Solution1. DescriptionMultipartstream.java in Apache Commons FileUpload before 1.3.1, as used in Apache Tomcat, JBoss Web, and other products, a Llows remote attackers to cause a denial of service (infinite loop and CPU consumption) via a crafted Content-type header That bypasses a loop ' s intended exit conditionsThe Apache Commons FileUpload 1.3.1 and Multipartstr
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.