Spring Source Analysis 5: JDK and cglib Dynamic Agent Principles

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. From https://www.jianshu.com/u/668d0795a95b This paper is based on jdk1.8 to explore the underlying mech ...

Posted on Sun, 25 Aug 2019 02:46:22 -0700 by doodmon

Proxy Triple Axe for Springboot Source Analysis

Summary: 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. Explain: Relevant Configuration Classes of ProxyConfig Agent AdvisedSupport implemen ...

Posted on Sat, 24 Aug 2019 01:41:37 -0700 by wkrauss

Get rid of date format altogether

(1) Date category [Date] (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

Design Patterns: Five Realizations and Analysis of Singletons

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

[JVM] LXF Deep Understanding of JVM Theme (5-)

Links to the original text: https://blog.csdn.net/a724888/article/details/78404643 Articles Catalogue 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

Da03.1-java.util

12 August 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 1.Date class java.util.Date Class Date represents a specific instant, accurate to milliseconds calender ...

Posted on Mon, 12 Aug 2019 02:06:27 -0700 by danieloberg

Magic in Java - Unsafe

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

ReentrantLock for JAVA Multithreading and High Concurrency Explanation lock/unlock/tryLock Method

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

Java Concurrency Guide 13: HashMap and Concurrent HashMap full parsing in Java 7/8

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

BlockingQueue produces consumer congestion

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