The interview is too difficult

ioc of spring Before talking about ioc, I think we should first understand the dependency inversion principle, that is, the high-level module cannot directly rely on the low-level module, but should rely on the abstraction of the low-level module. This is to untie the code coupling. Then when we develop with this design pattern, we still have t ...

Posted by bluntster on Mon, 31 Jan 2022 06:22:05 +0100

Spring Bean life cycle source code analysis

Bean life cycle preface For ordinary Java objects, the object is created when it is new, and is recycled by the garbage collection mechanism when it has no reference. For objects managed by the Spring IoC container, their life cycle is completely controlled by the container. The life cycle of each Bean in Spring is as follows: 1, ...

Posted by Niel Roos on Mon, 31 Jan 2022 05:37:21 +0100

Learn dubbo - take you through the source code to see how dubbo uses netty

preface Some time ago, I learned about the netty source code from scratch, but they all understood it in principle. The blogger has just learned a little about the dubbo framework. This time, take the dubbo framework as an example to see in detail how the excellent open source framework uses netty and how it integrates with the logic of the fr ...

Posted by croakingtoad on Mon, 31 Jan 2022 02:46:53 +0100

Java advanced: Collection framework 3

catalogue 1, Map interface 1. Map and Collection 2. Common methods in map interface 3. Map set traversal - keySet method 4. Entry interface 5. Map set traversal - Entry 6. HashMap stores user-defined type key values 2, Object oriented idea of set inheritance system 3, Mutual conversion of array and List 1. Convert Collaction to array 1, Map ...

Posted by dannyone on Sun, 30 Jan 2022 22:18:37 +0100

Detailed explanation of Java generic mechanism; Do you know all this?

Special invited author of enjoying learning class: Dream chasing youth Reprint, please state the source! ###Foreword When we do development, we always emphasize the concept of data type. In Java, it is divided into basic type and reference data type. There are eight basic data types. In addition to classes, we can also use the way of interfa ...

Posted by Yves on Sun, 30 Jan 2022 21:25:01 +0100

The result mapping of the introduction to Mybatis, did you shoot it right?

preface This article explains the result mapping of Mybatis. If you want to use Mybatis flexibly in enterprise development, you must be proficient in this part. What is result mapping? Simply put, it is how the fields returned by an SQL query statement correspond to the attributes in the Java entity class.The following SQL statement is used ...

Posted by mattee on Sun, 30 Jan 2022 18:10:36 +0100

Java interview must ask, ThreadLocal ultimate

##Foreword During the interview, it is also common for the interviewer to investigate "ThreadLocal", so it is very necessary to understand it thoroughly Some interviewers ask straight to the point: "Do you know ThreadLocal?" "Tell me about your understanding of ThreadLocal" Of course, some interviewers will slowl ...

Posted by psychohagis on Sun, 30 Jan 2022 08:22:29 +0100

Tear the bottom layer of ArrayList by hand and thoroughly analyze the source code

Recommended reading: Ali's two cool Classics: design mode + cache + Spring + virtual machine + MySQL + middleware + concurrency and other problems are all solvedHow to learn HTTP that big companies must ask? I suggest you read this article!Ant, byte and PDD social recruitment face by Java post (distributed + thread safety + MySQL+CAS) ArrayLi ...

Posted by skippence on Sun, 30 Jan 2022 07:58:04 +0100

[interview] python modifier for interview questions

1) What is a python decorator? Python decorator is a very powerful function, an excellent design pattern, which abstracts the repeated content and gives a function other functions without changing the function itself. Simply put, modifiers are functions that modify the functions of other functions.It makes the code extremely concise and ...

Posted by flash_78 on Sun, 30 Jan 2022 07:21:58 +0100

Comprehensive analysis of advanced core knowledge in Java -- Redis (introduction, basic data structure, jump table [introduction, implementation])

1, Five basic data structures 1. Introduction to redis “Redis is an open source (BSD licensed), in-memory data structure store, used as a database, cache and message broker.” —— Redis is an open source (BSD licensed) in memory data structure storage, which is used as database, cache and message agent. (from the off ...

Posted by TipPro on Sun, 30 Jan 2022 06:31:42 +0100