AOP is based on Java dynamic proxy. Understanding and using two kinds of dynamic proxy can help us understand AOP better. Before explaining AOP, let's first look at how Java dynamic proxy is used and the underlying implementation principles.
This paper is based on jdk1.8 to explore the underlying mech ...
Posted on Sun, 25 Aug 2019 02:46:22 -0700 by doodmon
In the process of Spring's version change, annotations have changed a lot, but the design of proxy has also changed subtly, from Spring 1.x's ProxyFactoryBean's hard-coded island Spring 2.x's Aspectj annotations to now's well-known automatic proxy.
Relevant Configuration Classes of ProxyConfig Agent
AdvisedSupport implemen ...
Posted on Sat, 24 Aug 2019 01:41:37 -0700 by wkrauss
(1) Date category
(1) The imported package is "import java.util.Date;"
(2) Since version 1.1 of JDK, many constructions in date classes have been discarded. Only the parametric constructions and the parametric constructions wi ...
Posted on Sun, 18 Aug 2019 06:09:19 -0700 by thumrith
Singleton pattern is the simplest creation pattern in design pattern. The usage scenarios generally include: tool class object, class with only one instance object in the system, creating frequently or time-consuming and frequently used objects, etc. For example, JDK's Runtime class is the starvation singleton mode, and Spring container managem ...
Posted on Tue, 13 Aug 2019 03:46:38 -0700 by changeback
Links to the original text: https://blog.csdn.net/a724888/article/details/78404643
Deep Understanding of JVM Virtual Machine 5: Virtual Machine Bytecode Execution Engine
I. The Essence of Method Call
2. Runtime stack f ...
Posted on Tue, 13 Aug 2019 02:32:49 -0700 by MrAdam
Today's learning content is
1) Common Tool Classes in java
2) CSS and HTML
3.1 Common tool classes in the java.util package
Ctrl+Shift+o can quickly import corresponding packages
Class Date represents a specific instant, accurate to milliseconds
Posted on Mon, 12 Aug 2019 02:06:27 -0700 by danieloberg
Unsafe is a class located under the sun.misc package. It mainly provides some methods to perform low-level, unsafe operations, such as direct access to system memory resources, self-management of memory resources, and so on. These methods have played a significant role in improving Java efficiency and enhancing the operation capabilities of Jav ...
Posted on Sat, 10 Aug 2019 23:44:40 -0700 by Simmo
Locking is usually considered to ensure thread safety in multi-threaded high concurrency scenarios in JAVA. But in special scenarios, we can also use thread-safe objects provided by the java.util.concurrent package to avoid locking and achieve high efficiency.
However, these thread-safe objects only ...
Posted on Sat, 10 Aug 2019 04:34:48 -0700 by ThinkGeekness
Wechat Public [Java Technology Jianghu], a technology station for an Ali Java engineer. Respond to "Java" after paying attention to the public number, you can get free learning materials such as Java Foundation, Advancement, Projects and Architects, as well as popular technology learning videos such as database, dist ...
Posted on Fri, 09 Aug 2019 22:43:41 -0700 by stereofrog
A Little Problem in BlockingQueue Use
Requirement: Five producer threads write timestamps (System. CurrtTimeMillis ()) run for five minutes, five consumers get timestamps, write text, wait for producer and consumer to complete, read the text, sort and output to another text.
It's natural to think of ...
Posted on Sun, 04 Aug 2019 05:16:49 -0700 by telsiin