Chapter 7 - Bean life cycle and extension points of Spring

The core of Spring is the IoC container. It is very important to understand the life cycle of beans, which is very helpful for the application and extension of Spring in the project. 1, Life cycle The life cycle of a Bean mainly consists of four stages: instantiation, attribute filling, initialization and destruction, plus class loading a ...

Posted by dourvas on Sun, 05 Dec 2021 02:24:37 -0800

Idea of time slice rotation algorithm (java)

1, Request This paper expounds the process from submission to execution of multiple jobs, and explains the concept, differences and relationship of three-level scheduling;The ideas, characteristics, advantages and disadvantages of FCFS, SJF/SPF, HRRN, RR and multi-level feedback queue scheduling algorithms are described;The algorithm realize ...

Posted by jackson4me90 on Sun, 05 Dec 2021 01:56:20 -0800

[design mode summary]

Design pattern Free learning reconstruction Design pattern RIPtutorial Graphic command mode Adapter mode To sum up: be able to play freely when meeting the third-party framework Log adaptation third party framework Assume that the current self-defined code base is as follows. MyLogger has two implementation classes interface MyLogger { v ...

Posted by paullb on Sun, 05 Dec 2021 01:39:42 -0800

Build a Web server in 3 minutes -- Java Spring Boot + MySql + Android App

Personal Taobao store link Partners in need can click here 1 Preparation (1) Download the official website of tomcat, unzip it to / Library, start the Tomcat server, and the official website of Tomcat appears; (2) When downloading MySql, the Mac should not download the latest version, because MySql cannot be opened in the system preferences. ...

Posted by LiveFree on Sat, 04 Dec 2021 22:14:02 -0800

Vue +Springboot blog project summary

Vue+Springboot blog project summary Technology stack: Vue + springboot + mybatis Plus + redis + MySQL 1. Construction of project environment 1.1. Dependency of sub module and parent module When the parent module uses version management for dependency management, it must declare the version number. If not, the child module cannot introd ...

Posted by dickey on Sat, 04 Dec 2021 21:43:41 -0800

Chapter 2 sparse arrays and queues

Chapter 2 sparse arrays and queues 2.1 sparse array 2.1.1 basic introduction When most elements in an array are 0 or the same value array, sparse array can be used to save the array (compress redundant data) Representation of sparse array: How many rows and columns are there in the first row? How many different values are there (relati ...

Posted by Mortier on Sat, 04 Dec 2021 19:52:55 -0800

JAVA - employment case ② (WEB comprehensive case)

target Objective 1: be able to name three common paradigms of database design Goal 2: be able to use PD tools for table structure design Objective 3: complete the business development of discipline module Objective 4: complete the business development of the directory module Objective 5: complete the business development of the topic ...

Posted by AdamDowning on Sat, 04 Dec 2021 17:41:41 -0800

Singleton mode notes

Hungry Han style Initialize the object at the beginning. Whether it is used or not, this class allocates space, initializes the object, and points the object to space Disadvantages: waste of space public class HungerMan { private HungerMan() { } private final static HungerMan hungerMan = new HungerMan(); private static Hunge ...

Posted by GrexP on Sat, 04 Dec 2021 17:35:35 -0800

SSO single sign on + JWT privilege control practice based on Spring Security Oauth2

summary The usage and practice of permission system based on Spring Security and JWT have been discussed in the previous design of permission system based on Spring Security and JWT. This paper further practices the multi system single sign on (SSO) and JWT permission control functions based on Spring Security Oauth3. After all, this requirem ...

Posted by ganesh129 on Sat, 04 Dec 2021 15:54:35 -0800

Java learning road 06 - logical structure trap

Architecture diagram suspension If only one logical judgment statement is connected, this statement will be connected with the nearest logical judgment statement, such as system. Out. Println ("none zero!") in the following example; Will be connected under the if structure, which is called suspension while(iter < 10) if(iter ...

Posted by rgermain on Sat, 04 Dec 2021 12:16:41 -0800