The finishBeanFactoryInitialization method in the eighth part of Spring source code analysis is to initialize the singleton bean

The finishBeanFactoryInitialization method in the eighth part of Spring source code analysis is to initialize the singleton beanA profound interpretation of the seven thousand word long article, how to initialize the singleton bean in Spirng, and how does Spring solve the circular dependency most often asked in the interview?Today, the most imp ...

Posted by khendar on Wed, 09 Mar 2022 04:25:29 +0100

Rethinking visitor model: from practice to essence

Introduction: Although visitor mode is not as well known as single case mode in design mode, it is also one of the few design modes that everyone can name. However, due to the complexity of visitor mode, people rarely use it in application systems. After the exploration of this paper, we will have a new understanding and find its more flexible ...

Posted by dazraf on Wed, 09 Mar 2022 04:02:18 +0100

Why can't I use interfaces and abstract classes after reading so many source codes?

We may often be asked in the interview what is the interface? What is an abstract class? What is the difference between an interface and an abstract class? How should interfaces and abstract classes be used? At the same time, when we work or read the source code, we will find that interfaces and abstract classes often appear in front of us. Tod ...

Posted by evaoparah on Wed, 09 Mar 2022 03:29:04 +0100

Javase--13 -- common classes

13 - common classes 13 - 1 packaging 1. Reference corresponding to eight basic data types - packaging class; 2. By wrapping the class, you can call the method of the corresponding class; Basic data typePackagingThe direct parent class of Boolean and Character is ObjectbooleanBooleancharCharacterThere are six kinds of, and the direct paren ...

Posted by backinblack on Wed, 09 Mar 2022 03:21:33 +0100

TreeMap source code analysis

1. Brief description Today, let's introduce TreeMap. TreeMap is a Map based on red black tree structure.What is red and black number?(1) Each node must be red or black;(2) The root node is black;(3) Each leaf node (NIL node, empty node) is black;(4) If a node is red, its two byte points are black, that is, two adjacent red nodes cannot appear ...

Posted by g5604 on Wed, 09 Mar 2022 02:32:03 +0100

[common Spring error cases] exception of calling Bean object method and throwing null pointer in constructor

preface Sometimes, when you don't understand the way Spring manages Bean, you may encounter various problems, such as calling a method of Bean object in the container, such as: @Service public class MyServiceImpl { @Resource private UserServiceImpl userService; public MyServiceImpl() { userService.method(); } ...

Posted by beselabios on Wed, 09 Mar 2022 01:49:35 +0100

JAVA operator summary

catalogue Arithmetic operators (+,, *, /) Modulo / remainder operator (mod) Self increasing and self decreasing operators (Num + +, Num --, + num, -- Num) Logical operators (& &, ||,!) Bit operation (&, |, ^) < < > > and > > > Comparison operators (<, >, < =, > =, = =,! =) Operator typeSym ...

Posted by Jose Arce on Tue, 08 Mar 2022 23:37:51 +0100

Caching mechanism of Mybatis

cache MyBatis has built-in a powerful transactional query caching mechanism, which can be easily configured and customized. By default, only local session caching is enabled, which only caches the data in one session. To enable the global L2 cache, you only need to add a line to the mapping file of SQL: <cache/> L1 cache Also known as ...

Posted by sebajom on Tue, 08 Mar 2022 22:44:48 +0100

JAVA object-oriented 01 -- Understanding classes and objects

OOP Key content in Java! What is OOP OOP: Object Oriented Programming Java is object-oriented. OOP is a process of using java language to describe objectively existing things and things, and using the logic of the program to connect these things and things and interact for a certain purpose. Therefore, you must be familiar with OOP in or ...

Posted by nawal on Tue, 08 Mar 2022 21:42:04 +0100

Java SE foundation UDP and TCP

summary Java and C#, can use UDP and TCP protocols for network communication. This chapter only describes the basic use of UDP and TCP. Compared with various standard / non-standard TCP, ModbusTCP (occupying 502 port) and lower computer custom network communication protocols required when writing the upper computer, Java TCP and UDP progra ...

Posted by Duswa on Tue, 08 Mar 2022 21:23:45 +0100