In this section we introduce the relevant common configuration of the spring framework
Spring relies on injection in two ways (construct method injection and setter mode injection)
P-namespace Mode configuration
Properties Property
Some data is generated during client-to-server communication. For example, A and B respectively landed a treasure shopping site, a bought an Android phone, B bought an iphone, when the checkout, the Web server needs to separate the user A and B
1. Summary of this week's study2. Written workQ1.clone methodThe methods in the 1.Object object clone are protected decorated, what do you need to be aware of when overriding the Clone method in your custom class?A: It is important to be aware of
Constructor: The ⑴ method name is the same as the class name, and there is no return type (including void);⑵ no return value;⑶ If there is no input constructor, the JVM will automatically help us create a constructor without parameters, without any
Class loading order for JavaFirst, load order1. Initialization of the static member variable of the parent class1.1. Static code block1.2, ordinary code block1.3, no parameter constructor2. Static code block for parent class3. Initialization of a
Java Development Environment ConfigurationIn this section we will show you how to build a Java development environment.
Window System install Java download JDKFirst we need to download the Java SDK
a java identifier and a keyword1. IdentifiersFunction: A valid sequence of characters used to identify the class name, variable name, method name, type name, array name, and file name.Composition rule: consists of a letter, an underscore, a dollar
In the Java language, a thread is a special object that must be created by the thread class or its child (grandchild) class.There are usually two ways to create a thread:One is to use a constructor of type thread (Runnable) to wrap an object that
Since it's a Web project, first you have to get a response to write it externally, you have to get the response object response,1. Add the following two lines of codeResponse.setcontenttype ("Application/vnd. Ms-excel ");Response.setheader ("Content-
Collections are the most commonly used data structures in programming. When it comes to concurrency, it is almost always supported by a collection of such advanced data structures. For example, two threads need to access an intermediate critical
Interface:1. Modifier with interface2. All methods in an interface are abstract (no method body allowed) methods do not need to be forced to write abstract3. All variables in the interface are constant public static final adornments do not need to
The core of Java is Object-oriented (fully object-oriented)Object-Oriented ProgrammingYou have to be clear about the three main features of the object1. Behavior of the object2. The state of the object3. Object identificationIn addition, it is
Beijing Institute of Electronic Technology (BESTI)Real Inspection report Course: Program Design and data structure class: 1623 Name: Qili No.: 20162326Score: Instructor: Lou Jia Peng/Wang Zhiqiang experimental date: March 17, 2017Experimental
In Java, you can use the interrupt () function for thread breaks. Although this function cannot terminate a thread's run, it can change the state of the thread to TrueThat is: The value of isinterrupted () returns TrueNote: When the function calls a
Overloaded overloading and overriding overriding are two manifestations of polymorphism in a class.(1) Java's method overloading is that you can create multiple methods in a class that have the same name but have different parameters and different
Java class loading sequence and java Loading Sequence
Java class loading sequence
I. Loading Sequence
1. initialize static member variables of the parent class
1.1 static code block
1.2. Common Code Block
1.3 No parameter Constructor
2. Static
Java design mode: GOF Singleton mode; java design mode: gof
I. Singleton)1. application scenarios of Singleton mode:① Servlet② Task Manager③ Link pool④ In Spring, each bean is a singleton by default.⑤ Website counter2. Requirements for Singleton①
Cglib (1): Cglib and its basic usage. cglib
Preface
I have been reading the Spring Source Code recently. In fact, I have always known the basic implementation principles of AOP:
If the Proxy for the interface is used by default, the built-in JDK
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