Tomcat source code compilation and operation [notes]
catalogue
1. Download source code
2. Decompress and prepare for compilation
3. Import IDE compilation source code
4. Configure the startup class and start the operation
1. Download source code
Download the source code from Tomcat's official website and find the path: home page of the official website → under [Download] on the left n ...
Posted by godyn on Sun, 06 Feb 2022 09:30:25 +0100
[source code] Spring source code parsing IOC container_ ClassPathXmlApplicationContext start
Spring source code collection: Spring source code analysis (I) IOC container_ BeanDefinition and container loading
preface
Before we start to analyze the Spring source code, we need to do a few preparations.
What we want to analyze in this chapter is to use ClassPathXmlApplicationContext to read the xml configuration file and start ...
Posted by vcodeinfotec on Thu, 03 Feb 2022 20:51:33 +0100
Java: Deep understanding of Serializable and arcelable
Preface
This article is the author's record of learning Serializable and arcelable to explore his own questions
I. Problems Caused by the Author
Why does Java implement Serializable objects to realize that they support serialization? Why is Serializable less efficient than Parcelable?
2. Interpretation of Source Code
Serializable cor ...
Posted by socadmin on Thu, 03 Feb 2022 18:22:18 +0100
From using Arthas to check the problem of online Fastjson to Java Dynamic bytecode Technology (middle)
Last article Through the re examination of an online accident, it leads to the Arthas of Fubao factory, a Java diagnostic tool based on Java Dynamic bytecode technology; There is no need to elaborate on the use of Arthas. You can get started quickly by viewing the official documents, and there are many ways to play; In the previous article, onl ...
Posted by zuzupus on Wed, 02 Feb 2022 02:55:37 +0100
Caffeine, the king of local cache
introduction
With the growth of business volume, the cache schemes used generally go through the following steps: 1) query DB directly without cache; 2) Data synchronization + Redis; 3) Multi level cache has three stages.
In the first stage, direct DB query can only be used in small traffic scenarios. With the increase of QPS, cache needs to ...
Posted by networkthis on Tue, 01 Feb 2022 15:14:40 +0100
❤️ [dynamic graph demonstration of top 10 classic sorting algorithms (c + + version)] ❤️
1, Fundamentals of sorting algorithm
1. Algorithm classification
Common sorting algorithms can be divided into two categories:
Comparison sort: the relative order between elements is determined by comparison. Because its time complexity cannot exceed O(nlogn), it is also called nonlinear time comparison sort.
Non comparison sort: the re ...
Posted by keiron77 on Mon, 31 Jan 2022 21:17:31 +0100
mybatis source code analysis extension of L2 cache
1, Review the contents of L2 cache
The L2 cache is built on the L1 cache. When receiving the query request, MyBatis will query the L2 cache first. If the L2 cache is not alive In, query the level-1 cache again. If there is no level-1 cache, query the database again. L2 cache - > L1 cache - > database. Unlike the L1 Cache, the L2 Cach ...
Posted by vikette on Wed, 26 Jan 2022 18:44:04 +0100
[suggested collection] here are all the Vue3 core source codes you want to know
Writing is not easy. Reprinting in any form is prohibited without the permission of the author! If you think the article is good, you are welcome to pay attention, praise and share! Continue to share technical blog, pay attention to WeChat official account. 👉🏻 Front end LeBron
Effect and Reactive
As the core of Vue's responsive princi ...
Posted by maxpup979 on Wed, 26 Jan 2022 02:04:57 +0100
About the usage record of date function in hutools toolkit, between(), between day(), abs(), date after()
demand
Find the number of days between the current day and the specified date. The specified date must be before the current day, that is, the current day is 01-23, and the specified date should be 01-22
Solution
Use the method provided in the hutools toolkit to calculate the number of days between two dates betweenDay() Three parameters: be ...
Posted by uancletus on Tue, 25 Jan 2022 00:01:16 +0100
[source code] HashMap source code reading
2020-02-02
The following is the source code analysis of HashMap in JDK 11. The analysis of the code will be mainly reflected in the form of comments.
1 Overview
1.1 main concepts of HashMap
HashMap is a hash table implemented based on the Map interface, which realizes all operations in the Map interface. Moreover, HashMap allows the key to ...
Posted by richinsc on Mon, 24 Jan 2022 16:09:56 +0100