Declarative transaction
What is a transaction?
Transaction is to treat a series of actions as an independent unit of work, which are either completed or ineffective.
Attribute ACID of transaction:
1. Atomicity: a transaction is an atomic operation consisting of a series of actions. The atomicity of a transaction ensures that the actions are either completed or inef ...
Added by amandas on Sat, 19 Feb 2022 12:43:32 +0200
RocketMQ network communication
brief introduction
The remoting module of RocketMQ is the basis of communication among RocketMQ client, consumer, NameServer and Broker. It is implemented through the netty framework. The inheritance structure of the core class is as follows:
The RemotingService interface defines the start(), shutdown(), registerRPCHook() methods. The re ...
Added by Technex on Sat, 19 Feb 2022 11:57:32 +0200
Android - realizing the navigation of calculating routes in APP
Effect video
Jump to Baidu map for route calculation and navigation
Route calculation and navigation in APP
Function realization
Jump mode implementation
Function Description: by initializing Baidu map API, obtain the longitude and latitude of the current position as the starting point, and the entered address as the destination, t ...
Added by bobbuilder on Sat, 19 Feb 2022 11:13:56 +0200
[Spring] analysis of the underlying core principles of Spring
Content index of this article:
1.Bean Underlying principles of life cycle
2.Underlying principle of dependency injection
3.Initialize underlying principles
4.Inferential construction method and underlying principle
5.AOP Underlying principle
6.Spring Transaction underlying principle
However, they are only general processes. In the follow-up, ...
Added by roel_v on Sat, 19 Feb 2022 11:02:25 +0200
Java access rights (class, interface, internal class, internal interface)
Personal blog original link
Java access rights (class, interface, internal class, internal interface)
ref:
Rookie tutorial - java TutorialJava programming ideas [by Bruce Eckel]
Access modifier
Some types can only use partial access modifiers and have default modifiers
public, all classes are visible private, the current class is ...
Added by aftab_jii on Sat, 19 Feb 2022 10:36:04 +0200
MVC's automatic test unit configuration: SpringBoot
Automatic configuration of MockMvc
As mentioned above, @ AutoConfigureMockMvc provides the function of automatically configuring MockMvc and instantiating the function of MockMvc
The specific code is in Within the MockMvcAutoConfiguration autoconfiguration class in the spring boot test autoconfiguration project. The effectiveness of this auto ...
Added by zelot1980 on Sat, 19 Feb 2022 10:04:28 +0200
LeetCode problem solution - dynamic programming - subsequence problem
LeetCode problem solution - dynamic programming - subsequence problem
Reference: labuladong WeChat official account, hand handle brush, dynamic programming series, official account, excellent public address, recommended to everyone.
In this paper, we will pick up the routine of sub sequence problem. In fact, there are two kinds of templ ...
Added by reversenorm on Sat, 19 Feb 2022 09:52:48 +0200
Looking at the difference between String and StringBuffer from all path problems of binary tree
All paths of binary tree
Given a binary tree, return all the paths from the root node to the leaf node.
Note: leaf nodes refer to nodes without child nodes.
1. Method 1: the temporary path is stored in String
class Solution {
List<String> res = new ArrayList<String>();
public List<String> binaryTreePaths(TreeNode r ...
Added by werushka on Sat, 19 Feb 2022 09:47:45 +0200
10. Micro service items
Pull hook education PC Station - micro service version
- Lao sun
1. Review microservices
1. General
Let's first look at how micro services are described in Martin Fowler's paper
Microservice is an architecture mode or architecture style. It advocates dividing a single application into a group of small services. Each service runs in its ow ...
Added by webpals on Sat, 19 Feb 2022 09:11:21 +0200
Rich second generation of Java inheritance relationship and his father
First, you need to know some definitions of inheritance. Briefly, but be sure to remember:
In the concept of inheritance, there are subclasses and superclasses. The superclass is also called superclass or base class, and the subclass is also called derived class (don't change the word to be silly)Inheritance is for subclass objects to have the ...
Added by thewooleymammoth on Sat, 19 Feb 2022 08:37:44 +0200