Summary of AOP Face-Oriented Programming for SpringBoot
1. What is AOP
Aspect-oriented programming (AOP), also translated as Aspect-oriented programming and Profile-oriented programming, is a program design idea in computer science. It aims to further separate cross-cutting concerns from business entities to improve the modularity of program code.By adding an additional Advice mechanism to the exis ...
Posted by PRSBOY on Wed, 18 Dec 2019 20:50:06 -0800
JNI development minimalist tutorial
JNI(Java Native Interface)
Java calls C/C + +, C/C + + calls a set of Java API
Preface:
Learning JNI requires knowledge of C/C + + and JNI manual
Students who want to learn, please follow my study notes NDK development learning notes
1: write native methods in eclipse
public class Java2cpp {
static {
System.loadLibra ...
Posted by bealers on Sat, 14 Dec 2019 07:28:06 -0800
The most elegant and simple way for java reflection to get parameter names with asm
Background description
Recently, I wrote reflection-related code and wanted to get the name of the corresponding parameter, but found there was no particularly good way.
jdk7 and before was not able to get parameter names through reflection.
jdk8 is available, but there are many restrictions on specifying the-parameter startup parameter.
I tri ...
Posted by salmanshafiq on Sat, 14 Dec 2019 01:13:44 -0800
Evolution of ThreadLocal -- inheritable ThreadLocal
Previously, we introduced ThreadLocal. Later, JDK made an upgrade version of InheritableThreadLocal for this purpose. Today, we will introduce it.<!-- more -->
Why upgrade
First of all, let's think about it. Why upgrade? This is about the function of ThreadLocal.
We know that the original intention of ThreadLocal design is to have a copy ...
Posted by wyrd33 on Fri, 13 Dec 2019 09:03:14 -0800
Component architecture design: routing architecture design and coding implementation
Blog Homepage
Design of component-based routing architecture
In the previous article, we explained the class loading and global Map recording to realize the interaction between component modules, and slowly derived the APT technology.
So in the component architecture, we need to think about what kind of class files are generated through apt + j ...
Posted by hyngvesson on Fri, 13 Dec 2019 03:04:10 -0800
Introduction to Spring AOP and its underlying implementation mechanism -- dynamic proxy
AOP introduction
AOP (aspect oriented programming) is called: aspect oriented programming, which is a kind of programming idea. AOP is the continuation of OOP (Object Oriented Programming)
AOP adopts horizontal extraction mechanism to replace the traditional vertical inheritance system of repetitive code writing (such as performance monitori ...
Posted by frANZi on Thu, 12 Dec 2019 23:43:41 -0800
Recognize JavaAgent -- get all classes loaded by the target process
Author: Longofo @ know Chuangyu 404 LabTime: December 10, 2019Original link: https://paper.seebug.org/1099/
Previously, a class was found in an application, but an error occurred during deserialization test. The error is not class not found, but other 0xxx errors. By searching this error, it is probably that the class was not loaded. Recently, ...
Posted by CRichardson on Thu, 12 Dec 2019 22:15:23 -0800
Install alirocketmq version from scratch on CentOS7: release-4.0.1
Install alirocketmq version from scratch on CentOS7: release-4.0.1 [pro test ha ha]
Install git
# Update package
$ yum update
# Install git
$ yum install git
# Verify git installation success
$ git --version
# So git can be installed successfully
Install wget dependency package
# Update package
$ yum install wget
# You can ...
Posted by SCRUBBIE1 on Thu, 12 Dec 2019 08:46:41 -0800
synthetic: a trick of Java cold knowledge compiler
When we read the JDK reflection package source code, we will encounter the isSynthetic() method. One of its implementations is Modifier.isSynthetic(getModifiers()), and the principle of other methods is the same. Modifier is a special class for defining modifiers, among which static final int synchronous = 0x00001000 is one of the modifiers.I t ...
Posted by Tyche on Thu, 12 Dec 2019 00:17:29 -0800
J.U.C Analysis and Interpretation 2 (Origin of AQS)
Preface
Previously, you showed how JDK implements exclusive and shared locks by implementing custom ReentrantLock and custom ReentrantReadWriteLock.
So how do ReentrantLock and ReentrantReadWritreLock in the actual JDK source work?Can our existing custom code go any further?
The answer is yes.Note that if you look at my two previous Lock friend ...
Posted by eddie21leeds on Wed, 11 Dec 2019 18:49:38 -0800