Conquer Spring AOP --@AspectJ
Links to the original text: https://my.oschina.net/mohaiyong/blog/221283
Conquering Spring AOP-Schema Following the original example, the Schema mode is converted to @AspectJ mode.
An ...
Posted by goatboy on Sun, 08 Sep 2019 22:28:50 -0700
ThreadPoolExecutor Source Analysis for Java Concurrent Package Source Learning ThreadPools
Original Link: https://my.oschina.net/u/1052976/blog/550068
Thread pooling technology in Java typically uses Executors, a factory class that provides a very simple way to create variou ...
Posted by Jbert2 on Sat, 07 Sep 2019 16:36:03 -0700
Abstract Factory Model of 23 Design Patterns in GOF
Abstract factory pattern
Used to produce all products of different product families. (There is nothing we can do to add new products; support the increase of product family)
Abstract factory pattern is an upgraded version of factory method pattern. ...
Posted by Phate on Sat, 07 Sep 2019 04:08:49 -0700
WeakHashMap, Source Code Interpretation
Summary
WeakHashMap is also an implementation class of the Map interface. It is similar to HashMap and is also a hash table that stores key-value pairs and is non-thread-safe. However, WeakHashMap does not introduce a red-black tree to avoid the impact of hash conflicts. The internal implementation is just an array + a single linked list. In a ...
Posted by MytHunter on Sat, 07 Sep 2019 00:49:46 -0700
Java thread implementation and thread state
Write at the top
I wrote Concurrent HashMap before, whether 1.8 or 1.7, which involves locks Synchronized and ReentrantLock; the concept of locks is to solve thread security issues; so start writing from threads.
This article mainly writes about th ...
Posted by phychion on Fri, 06 Sep 2019 23:22:43 -0700
MyBtis - Dynamic Agent
Articles Catalogue
concept
Static proxy
Dynamic Agent
JDK Dynamic Agent
CGLIB Dynamic Agent
concept
According to the period of the establishment of agency, there are two types of agency:
Static: Programmers create proxy classes or specific ...
Posted by shann on Fri, 06 Sep 2019 06:47:35 -0700
[Benchmarking] A Brief Introduction to JMH
A Brief Introduction to JMH
What is JMH
JMH is the abbreviation of Java Microbenchmark Harness. The Chinese meaning is roughly "JAVA microbenchmark suite". First, understand what a "benchmark" is. Baidu Encyclopedia defines it as follows:
Benchmarking It refers to the quantitative and comparable testing of a certain perfor ...
Posted by manhattanpaul on Fri, 06 Sep 2019 03:14:33 -0700
SpringBook Project: Introduction
I. Brief Introduction
SpringBoot is designed to simplify Spring's application development. It adopts the idea that convention is greater than configuration, simplifies the complexity and integrates the Spring technology stack, so that developers ...
Posted by anthill on Wed, 04 Sep 2019 19:14:02 -0700
Java Multithread-Thread Communication
Mode of communication
To achieve synergy among multiple threads, such as the order in which threads execute, getting the results of a thread's execution, and so on.There are four categories of interoperability between threads:
File sharing
Network Sharing
Shared variable
Thread Coordination API provided by JDK
suspend/resume,wait/notify,park ...
Posted by shab620 on Tue, 03 Sep 2019 12:14:44 -0700
Arrays in java and source code for the Arrays class
Arrays in java and source code for the Arrays class
The java.util.Arrays class is a tool class provided by JDK to handle various methods of arrays, and each method is essentially a static method that can be called directly by the class name Arra ...
Posted by easethan on Mon, 02 Sep 2019 20:20:09 -0700