First, Commons beanutilsDescription: A toolset for beans. Since beans tend to have a bunch of get and set components, Beanutils also carries out some packaging on this basis.Second, Commons CLIDescription: This is a tool for handling commands. For example, the main method input string[] need to parse. You can pre-define the rules for parameters, and then you can invoke the CLI to parse them.Third,
(registration) that allow you to provide custom registration services. Registration is a markup interface.@Configurationbr/> @EnableDiscoveryClient (autoregister=false)Private Serviceregistry Registry;public MyConfiguration(ServiceRegistry registry) { this.registry = registry;}// called via some external process, such as an event or a custom actuator endpointpublic void register() { Registration registration = constructRegistration(); this.registry.register(registration);}}Each service
(registration) that allow you to provide custom registration services. Registration is a markup interface.@Configuration@EnableDiscoveryClient(autoRegister=false)public class MyConfiguration { private ServiceRegistry registry; public MyConfiguration(ServiceRegistry registry) { this.registry = registry; } // called via some external process, such as an event or a custom actuator endpoint public void register() { Registration registration = constructRegistration();
Li Wu:Learn to think more, honouring teachers save Thanksgiving. Leaf See Root 321, rivers with one.Meekness Conscience Lord, willing to do without regrets to the most bitter. Reading exercise strong body and mind, Prudential advised and the line and cherish.
The verification time is: 2017-10-18
website: http://commons.apache.org/proper/commons-io/download_io.cgi
Note: Sometimes using a browser to download fast, and sometimes use special
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
Commons Configuration
provides a generic configuration interface that allows
Xu
Java
should be
using the progra
The previous two articles say how to use the Commons-pool library simply, one problem to consider here is that in many cases our objects in the pool are heavier and most of the scarce resources, such as database connections, will be very resource if you keep some connections in the pool and do not return them. and is the utilization of these resources reduced, so how to better manage the pool of resources, Commons
Commons-validator (1)
The commons-validator package is used to extract the validation rule program for reuse. This package can be used in struts or independently applied in any other application. You can customize the verification method using Java classes, or configure the verification method using regular expressions in the configuration file. It not only supports server-side verification, but also suppo
Apache commons contains many open-source tools to solve common programming problems and reduce repetitive work. I have selected some common projects for a brief introduction. I used a lot of online ready-made items in this article. I just made a summary.
Commons beanutilsHttp://jakarta.apache.org/commons/beanutils/index.htmlDescription: A bean tool set. Beanutil
The Commons-beanutils class Library has a Beancomparator class that can be used to sort JavaBean. But this class can only sort on one property at a time. Here is an example of using Beancomparator to sort multiple properties of JavaBean, very simple:
1.import Org.apache.commons.beanutils.BeanComparator;
2.import java.util.Collections;
3.import Java.util.Comparator;
4.import java.util.List; 5.6./** 7. * Class 8 that sorts multiple properties of a L
(registration) that allow you to provide custom registration services. Registration is a markup interface.@Configurationbr/> @EnableDiscoveryClient (autoregister=false)Private Serviceregistry Registry;public MyConfiguration(ServiceRegistry registry) { this.registry = registry;}// called via some external process, such as an event or a custom actuator endpointpublic void register() { Registration registration = constructRegistration(); this.registry.register(registration);}}Each service
Introduced:
The Apache common-configuration tool can be used from Properties files, XML files, jndi,jdbc data sources, System Properties,applet Parameters,servlet parameters, etc. read the appropriate information.
Use steps:
Premise, the introduction of Commons-configuration-1.6.jar this jar package, but also must be reflected in the Commm-logging.jar,common-lang.jar and Common-collection.jar
Examples of XML operations:
Package com.dada.test;
Impo
In the process of doing a small project need to use the image upload function, so use a small file upload commons-fileupload components.
The response process is this: in the JSP page through the input tag to get picture file ==> sent to the servlet processing ==>servlet in the validation size, format, etc., and finally write the hard drive and path saved to the Database ==> control page Jump .
Servlet in the processing code I do not mention, and the m
js| Upload
Maybe the good things need to be discovered and summed up slowly.
I used to write JSP systems are using JSP smartupload components to solve.
A few days ago, the customer complained that when uploading large files, browsers did not respond, or even crash. Asked me to help solve and add upload progress (this is not a list, there is a need to add me msn:info@hkeb.com).
Immediately Google, Baidu, just know that JSP smartupload applicable to the comparison of small files, and if the upload
Tags: Apache Java source code dbutilsApachecommons Dbutils is an open source JDBC tool class library provided by the Apache organization, which encapsulates the traditional operations database class two times and can convert the result set to a list.The latest version is now 1.6.The official website address is: http://commons.apache.org/proper/commons-dbutils/Dbutils is a small JDBC lightweight package, the core of which is the encapsulation of the re
SummaryAs an Enterprise Java developer, we always need to implement various functions, such as parsing XML, using HTTP, verifying input and processing dates. The objective of using the Jakarta Commons project is to create components responsible for processing all such common tasks, saving time and allowing you to focus on core business solutions. In this article, we will briefly introduce the Jakarta Commons
Various weapons of Apche commons
Apache commons is a very useful toolkit to solve a variety of practical general problems, you will find that they are exactly what you need to think about. They are not peerless martial arts, it is indeed a hand-picked. When commons came out, the problem came to the fore. The following is a brief table for detailed access: http:/
Regardless of the procedure or the framework of the source code analysis, always based on the use of it, when we use it, then there will be curiosity and motivation to analyze how it is implemented.There are very few programmers who use Commons-pool directly, but they are often used in our projects. How did I get into contact with Commons-pool? This is when I learned Java EE development, when the time neede
Introduction Command Line Parameter Parsing and Application
Program Configuration and logging, as the skeleton of an application, can be seen everywhere. Therefore, the Apache Software organization has developed a set of common class libraries to help software developers build these "skeleton. Where:
#8226; commons CLI for command line Parsing
#8226; commons configuration is used to read configuration in
Section 01 Java. Lang. * vs commons-lang .* The current version is 2.0. First, let us first think about why Jakarta has a commons-lang opensource attack case? Among the JDK we use, Java is used. lang. * many users ignore the import settings, while Java uses 1.1 ~ 1.4 is currently being developed. For more information, the APIs that can be used are more and more comprehensive. But is it enough ?! Unfortu
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.