Dynamic data source switching of 30 classes of handwritten Spring core principles
This article is excerpted from Spring 5 core principles
Before reading this article, please read the following:
30 classes of custom ORM for handwritten Spring core principles (Part 1) (6)
Custom ORM of 30 classes handwritten Spring core principles (Part 2) (7)
4. Underlying principle of dynamic data source switching
Here is a brief intr ...
Posted by GodzMessanja on Fri, 24 Dec 2021 05:31:41 +0100
Analysis of the flow of flink task execution
background
From the perspective of source code, this paper mainly analyzes how the bottom layer of flink allocates tasks to each task executor for execution, as well as the thread model of task execution. It will involve how jobmaster distributes tasks to taskExecutor, the detailed process of task execution by taskExecutor, and the mailBox thr ...
Posted by Cliftron on Thu, 23 Dec 2021 20:59:06 +0100
"Vue source code learning" do you really know how Slot slot is "inserted"
Hello, I'm Lin Sanxin. Vue has implemented a set of content distribution API s, using the < slot > element as an exit to host the distribution content. This is the description on the Vue document. Specifically, a slot is a 'space' that allows you to add content to a component. Do you really know how a slot is "inserted"? I hope ...
Posted by d-m on Thu, 23 Dec 2021 18:15:37 +0100
Dynamic data source switching of 30 classes of handwritten Spring core principles
This article is excerpted from Spring 5 core principlesBefore reading this article, please read the following:30 classes of custom ORM for handwritten Spring core principles (Part 1) (6)Custom ORM of 30 classes handwritten Spring core principles (Part 2) (7)4. Underlying principle of dynamic data source switchingHere is a brief introduction to ...
Posted by bryson on Wed, 22 Dec 2021 11:18:48 +0100
datax source code analysis - detailed explanation of task splitting mechanism
datax source code analysis - detailed explanation of task splitting mechanism
Write in front
The version of the source code analysis is 3.0. Because plug-ins are an important part of datax, the source code of plug-ins will be involved in the process of source code analysis. In order to maintain consistency, plug-ins have been illustrated by m ...
Posted by phpcip28 on Thu, 16 Dec 2021 02:50:49 +0100
Spring source code analysis 2 Parse the Xml configuration file and register the BeanDefinition to the container
1. Important core interfaces
1.1 resource interface
Inheritance system
The Resource interface represents a Resource class, which is essentially an InputStream. It is used to read a configuration file and encapsulate it into a Resource.
1.2BeanDefinition interface
BeanDefinition inheritance system
According to the English meaning, bean def ...
Posted by ranjuvs on Sun, 12 Dec 2021 13:25:29 +0100
Environment preparation of 30 classes for handwritten Spring core principles
This article is excerpted from Spring 5 core principles1. Idea integrated Lombok plug-in1.1 installing plug-insIntelliJ IDEA is an excellent integrated development tool with powerful functions and many plug-ins. Lombok is an open source code generation library and a very practical gadget. When editing entity classes, we can use Lombok annotatio ...
Posted by phpdevuk on Thu, 09 Dec 2021 09:18:55 +0100
The most detailed explanation of Spring Bean's life cycle
Spring is the most popular and powerful lightweight framework in Java. The life cycle of Spring Bean is also a high-frequency interview question. Understanding the Spring Bean cycle can also better help us solve problems in daily development. Programmers should know that the basic container of spring is ApplicationContext. At the strong suggest ...
Posted by gerkintrigg on Thu, 09 Dec 2021 04:05:32 +0100
J.U.C ReentrantLock use and source code analysis
Essence: locks are used to solve thread safety problems Other implementations of Lock in Java, such as WiteLock write Lock and ReadLock read Lock, are mainly expanded with ReentrantLock reentry Lock in this paper
ReentrantLock reentrant lock
Reentry lock and mutex lock are used to solve the deadlock problem
1. Use of reentrantlock
static L ...
Posted by iceangel89 on Tue, 07 Dec 2021 19:04:21 +0100
Source code analysis of EventBus
usage method
The use method is very simple, according to Official documents The introduction is divided into three steps.
Step 1: define events
public static class MessageEvent { }
Step 2: prepare subscribers
Define subscription methods to handle received events.
@Subscribe(threadMode = ThreadMode.MAIN)
public void onMessageEvent(Messa ...
Posted by jvalarta on Sat, 06 Nov 2021 05:17:21 +0100