This article mainly introduces the configuration of basic parameters and application examples of apache-dbcp. Currently, the latest version of dbcp is 1.4 and needs to be run in the jdk1.6 environment. If you want to run in the jdk1.4 and 1.5
1. @ Model note solution usage@ Model note:Make the bean have a request-scoped cycle (take the @ dependent recognized by the proxy)Give bean an EL nameCreate a bean that asks for an example and assigns it a name, just like a class labeled with @
1. Use multiple @ Qualifiers at the same injection point to perform the following steps:You can use multiple restricted injection solutions to divide your injection targets in one step.We have fixed the limit to explain SuperFast and
Several examples of String constant pool problemsThe following is a comparative analysis and understanding of several common examples: String a = "a1"; String B = "a" + 1; System. out. println (a = B); // result = true String a = "atrue"; String B
Invalid, valid, and well-formatted documents
There are three types of XML documents:
Invalid document: does not comply with the syntax rules defined in the XML specification. If a developer has defined what a document can contain in a DTD or mode
Java data type: a strong type language. The first time a variable is declared, it must indicate the data type. The first value assignment is called the initialization of the variable.
Category: 8 basic types (native type): INTEGER: byte Byte type 1
After J2SE5.0, the automatic packing and unpacking functions were introduced to improve our development efficiency. However, automatic packing and unpacking are actually supported by the compiler (not the language itself, or virtual machine ),
Refer to the security chapter of java ee 6 tutorial for study notesJava ee applications are divided into multiple tier (layers), the client layer is a browser, the web layer is jsp, jsf, and so on, the business layer is ejb, And the db layer is jpa,
1. Add the hover effect to the menu item
Books
Web Development
BI Development
Web Test
2. Fold-over menu
Books
Web Development
BI Development
Web Test
Moive
American
The data defined in the class becomes the data member of the class, such as fields and constants. Function member methods provide data operations, such as function member methods, attributes, and constructors. Data members and methods in objects
Sorting algorithms seem to be the algorithms that programmers learn the most in programming, or they may be algorithms that algorithm researchers like most. There are many sorting algorithms, such as bubble, insert, selection, heap, fast, and merge.
Abstract class and interface support the definition of abstract classes in Java. The existence of these two mechanisms gives Java powerful object-oriented capabilities. Abstract class and interface have great similarity in support for the definition
Assume that the task is like this: for a given string, such as "threadTest", give it another "@" and return the result. There is no dependency between these tasks.
Assume that there are many such strings, such as 1000, and the number of threads
Add a file header to add the form label of Spring to jsp.
First Name:
Last Name:
CommandName = "user", so the attribute of this page must have the user attribute, and the value corresponding to the user attribute must
When performing a performance test, I found a problem with an MD5 tool class. under heavy pressure, I encountered a computing error. I analyzed the code and found the cause.
Here is the original code:
Public class MD5 {
// ---------------------
Sington class serialization
To change the Singleton class to serializable, it is not enough to implement the Serializable interface only. To maintain Singleton, you must provide a readResolve method for the Singleton class. Otherwise, a serialized
/**
* Obtain the system time
* @ Return
*/
Public String getDate (){
Calendar ca = Calendar. getInstance ();
Int year = ca. get (Calendar. YEAR); // obtain the year
Int month = ca. get (Calendar. MONTH); // get the month
Int day = ca.
This article mainly references Addy Osmani's PPT "How to Improve jQuery's Performance" (jQuery Proven Performance Tips And Tricks ). He is a member of the jQuery development team and has a certain degree of authority. His conclusions are all
Public class Tools {Public static boolean arrayEquals (String [] a, String [] B ){Boolean flag = false;If (a. length! = B. length ){Return false;} Else {For (int I = 0; I System. out. println (a [I] + "\ t" + B [I]);If (! A [I]. equals (B [I]) {Flag
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.