The main jar packages used in Java Web development

Source: Internet
Author: User

1.Java development of the main use of the jar package introduced:
(1) Java JDK Basic Development Kit: Java Package and Javax package.
Writing mode: Import java.lang.reflect.InvocationTargetException;
Import Java.util.HashMap;
Import Java.util.Map;
1.java.util Package: interface and implementation classes such as collection Class List/set/map. Calendar,date the date Operation class. Properties reads the configuration file class. Random number class. Timer Timers class.
2.java.lang Package: 8 Basic data types. String,stringbuilder class. Thread class. Java various keywords, void,throwable.
3.java.io Package: Various IO input and output streams.
4.java.net Package: All kinds of network related classes, Socket,httpurl and so on.
5.java.sql Package: Database-related operations, JDBC, etc.
6.java package is the core package for Java development. Javax is an extended class library on a Java package.
7.javax is an extension package for Java, such as the class library in EE, including SERVLET,JSP,EJB, database-related things, XML, and so on.
8.javax is one of the expansion packages provided by Sun, some of the optimizations that have been made to the original Java package, and many of them are now based on javax programming rather than Java packages, just like the graphical processing in NetBeans uses the Jabax package
。
(2) Apache commons Tool Pack: Provides common programming tools classes.
How to write:
Import Org.apache.commons.beanutils.BeanUtils;
Import Org.apache.commons.beanutils.ConvertUtils;
Apache Commons Package, contains a lot of open-source tools to solve the problems often encountered in programming, reduce duplication of labor.
1.commons-beanutils.jar:
Provides packaging for the Java reflection and introspection API, which provides a variety of operations for JavaBean. Provides a variety of operations for JavaBean, cloning objects, attributes, and so on.
2.commons-digester.jar:
It makes it easy to convert the elements defined in an XML document into Java objects, in fact, it's used a bit like a stack (the intrinsic principle is that ancient stuff, but it provides a higher level of encapsulation.)
3.commons-lang.jar;stringutils.isempty (String) is the jar package. Stringutils.substringafter ("SELECT * from person", "from");
4.commons-collection.jar Package:
5.commons-io.jar Package: Fileutil.readline (), just in this jar package.
6.commons-httpclient.jar Package: For HTTP get/post connection, it is more convenient than httpurl operation. Note: Httpclient.jar relies on the Http-core.jar package and must be imported before importing the Http-client.jar package http-
Core.jar package.
7.commons-fileupload.jar Package: Support File upload.
8.commons-codec.jar Package: Tool packages that handle common coding methods such as DES, SHA1, MD5, Base64, and so on.
9.commons-configuration.jar: Configuration Management Class Library for a Java application
10.commons-betwixt.jar:xml and Java objects are converted to and from each other.
11.commons-dbcp.jar: (Database Connection Pool) is a connection pool of databases that relies on the Jakarta Commons-pool object pooling mechanism, and Tomcat's data source uses DBCP.
12.commons-dbutils.jar:apache organization provides a resource JDBC Tool class library, which is a simple encapsulation of JDBC, the traditional operation of the database class two times encapsulation, you can convert the result set into a list. , and it does not affect
The performance of the program.
13.commons-email.jar: An open source API is provided for the encapsulation of JavaMail.
(3) Note: In the writing class, import Java JDK Basic development package

The main jar packages used in Java Web development

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.