Source code analysis of Spring transaction initialization

preface In the last article   Spring transaction usage details   Described in detail in   Spring   Let's take a look at the usage process of transactions today   Spring   How are transactions implemented, such as   Spring   What does the transaction do during initialization, spring   How transaction ...

Posted by paulsbooker on Wed, 20 Oct 2021 23:02:15 -0700

Explain the virtual DOM and Diff algorithm in simple terms, and the differences between Vue2 and Vue3

Because the Diff algorithm calculates the difference of virtual DOM, first pave a little bit of virtual DOM, understand its structure, and then uncover the veil of Diff algorithm layer by layer, in simple terms, to help you thoroughly understand the principle of Diff algorithm Understanding virtual DOM Virtual DOM is simply to use JS objects ...

Posted by tomato on Wed, 13 Oct 2021 08:51:49 -0700

Analysis of Vue responsive principle source code

Let's look at the picture first to understand the general process and what to do initialization During the initialization of new Vue, the data props and data of our components will be initialized. Since this article mainly introduces the response type, I won't explain it too much. Let's take a look at the source code Source address: Src / ...

Posted by Yegg on Sat, 09 Oct 2021 23:16:44 -0700

I was asked about the principle of Springboot automatic assembly during the interview. I'm sorry, hold it!!! No loss in collection

springboot version 2.5.5 Debug Roadmap Many words are tears. Let's look at the picture. Let's start with run After using Springboot for so many years, what has this run() method done? @SpringBootApplication public class SpringbootDemoApplication { public static void main(String[] args) { SpringApplication.run(SpringbootD ...

Posted by EdN on Wed, 06 Oct 2021 12:53:48 -0700

[sduoj] deep understanding of buffer

2021SC@SDUSC introduction In a oj system, the core content is the judgment part. Whether it is a real user or a question judging machine, to detect whether the code written by the user is correct, you only need to compile the source file where the running code is located, and then compare whether the program output result is the same as the s ...

Posted by madchops on Mon, 04 Oct 2021 10:46:47 -0700

cesium source code analyzes how a 3D scene is rendered

Seek medical advice Do you want to know the source code of cesium?Have you ever lost your way in the huge source code?How does cesium render the scene step by step? Go straight to the subject 1. The origin of all things - time //Clock.js Clock.prototype.tick = function () { var currentSystemTime = getTimestamp(); var currentTime = Julia ...

Posted by sdlyr8 on Tue, 28 Sep 2021 01:41:45 -0700

Java Collection source code summary Collection source code annotation translation and analysis in both Chinese and English

edition JDK8(JDK1.8) Collection interface source code focus 1. The root interface in the set hierarchy. A set represents a group of objects called its elements. Some sets allow repeated elements, while others do not. Some are ordered and some are disordered. 2. The interface class defines various specifications, including method specification ...

Posted by Opticon on Fri, 24 Sep 2021 21:13:19 -0700

Source code analysis of LockSupport(park&unpark)

Source code analysis of LockSupport(park/unpark) park method park() public static void park() { UNSAFE.park(false, 0L); } park(Object blocker) public static void park(Object blocker) { Thread t = Thread.currentThread(); setBlocker(t, blocker); UNSAFE.park(false, 0L); setBlocker(t, null); } blocker is used to record w ...

Posted by iamchris on Mon, 20 Sep 2021 20:04:38 -0700

Source code analysis - Golang Map

Correlation constant parsing bucketCntBits = 3 // It represents bit bucketCnt = 1 << bucketCntBits // Represents a bucket(bmap) with a maximum storage of 8 key s loadFactorNum = 13 loadFactorDen = 2 // The load factor is calculated from these two factors (the load factor is related to when to trigger capacity expansion) maxKeySize ...

Posted by sufian on Sat, 18 Sep 2021 22:23:59 -0700

Analysis and generation of ShardingSphere statements

brief introduction In the previous article, we found a critical path code for converting logical SQL to real SQL. In this article, we will explore some details of statement parsing generation based on the previous article Source code analysis The code generated by the key parsing of the statement is as follows: @RequiredArgsConstructor publ ...

Posted by kaitan on Thu, 02 Sep 2021 17:44:03 -0700