This series mainly records what the design pattern intends to be, what issues it wants to solve, and when it can be used; how it solves it, master its structure diagram, remember its key code; be able to think of at least two of its application
First of all, the concurrent class library should be a very important class library in java. When building some Synchronous Code, containers, and concurrency, you can find ready-made and usable classes in this class library...
The most core type in
Preface
IntelliJ IDEA compilation and generation of Jar packages are different from those of Eclipse. How to build this Maven Java recommendation engine project to generate a Jar package does indeed search for a lot of information, and there are
Custom coverAPI 1.1 and later versions support custom overlay.To create a custom cover, you need to do the following:Struct defines the constructor of a custom covering. Through the constructor parameters, some free variables can be passed.Worker
Information Window----- Text-only Information WindowTo help you easily prompt users, add a text information window in the specified area of the map to give users a visual display of information. The following shows how to add a text-only information
Bean Validation is a set of standard specifications, JSR 303. In Spring, a set of Validation interfaces and implementations are provided. Do not confuse them.
1. Examples provided by Spring itself
Org. springframework. validation. Validator
2.
1. Java serialization and deserialization:
(1) role:
1. The object state is saved to the local machine, so that the stored serialized bytes can be directly read when the VM is started next time, instead of initializing the object; 2. Implement
Common programming optimization skills:
1. String Optimization
(1) Characteristics of the String class: immutability and optimization for the constant pool (meaning of the String. intern () method)
(2) Memory leakage of the subString method:
(3) Use
When executing a Java program, JVM needs to load various types of data, such as Class, Instance, Constant, and local variables. Different Data are stored in different memory areas, which are called "Runtime Data Area )". The runtime data zone has
As a saying, I firmly believe that I understand garbage collection can be a better JAVA programmer. If a person is interested in the garbage collection process, it indicates that he has a considerable degree of experience in the application
It took me a week to finally build the Spring + Hibernate + FreeMarker system. Now I will release the building process so that I can be a beginner like me.
Step 1
First create a new WEB project; import a considerable JAR package (I use Spring3.0
Hibernate object states:
Transient:
It is in the Transitent state.
2. Persistent:
An object in the Persistent state will have one record in the database and the object has an oid, and a session is associated with the object.
3. Detached:
The
What is nhib?nhib=is an object persistence Class Library Based on. net for relational databases. NHibernate comes from an excellent Java-based Hibernate relational persistence tool. Nhib.pdf persists your. net object to a relational database from
I. Single-thread 1. Exceptions as long as an exception is thrown, it is certain that the code is wrong. First, let's take a look at the situations where ConcurrentModificationException occurs. The following uses the ArrayList remove operation as an
First, let's take a look at the two functions in our JAVA file. Both functions are very simple. Note that they are static.
package mm.nn.oo; public class CJava { public static String GetStr() { return "THIS STRING IS FROM JAVA!!!"; }
When struts2 is configured in eclipse, the following error occurs: There is no Action mapped for action name loginAction when Struts2 is configured in Eclipse. -The [unknown location] error is checked as follows: 1. Ensure struts. the xml file name
This topic is from the BCTF competition last week. The topic is the discovery of the poster (300). A png image contains the hidden KEY and the KEY. The specific report is as follows,
Download http://download.csdn.net/detail/l0g1n/7042787
I learned
Interceptor concept:
Interceptor is used in AOP (Aspect-OrientedProgramming) to intercept a method or field before it is accessed, and then add some operations before or after it. Interception is an implementation policy of AOP.
In the Chinese
1. Main Process
Read in data:IoProcessor --- logging, decoding, threadPool (IoFilter) --- IoHandler)Write out data:Business logic processing (IoHandler) --- logging, encoding, threadPool (IoFilter) --- IO writing (IoProcessor)From the above we can
I. Arrays:1. The suffix of suffix (I) string s starting from the I character is represented as suffix (I)
2. suffix array SA: It stores an arrangement of 1 .. n SA [1], SA [2],... , SA [n], and suffix (SA [I])
3. Ranking array Rank [I]: stores the
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