registerListeners() of Spring source code and publish subscribe mode
registerListeners() of Spring source code and publish subscribe modeHello, I'm classmate Tian, a programmer.Today, let's explain the registerListeners() method in the refresh() method, which is often referred to as the publish subscribe mode of Spring. This paper first gives an example of publish subscribe mode, then explains the principles of ...
Added by jreed2132 on Mon, 07 Mar 2022 09:45:46 +0200
Quickly understand the commonly used asymmetric encryption algorithms, and no longer have to worry about the thorough inquiry of the interviewer
Interviewer: what are your commonly used encryption algorithms?
Encryption algorithms are usually divided into two kinds: symmetric encryption algorithm and asymmetric encryption algorithm. The symmetric encryption algorithm uses the same key in encryption and decryption; Asymmetric encryption algorithm uses different keys in encryption and ...
Added by Xadian on Mon, 07 Mar 2022 09:25:38 +0200
Random talk: how does the log portal slf4j integrate the log framework
I preface
This article discusses some simple things, mainly to understand what log portal is and how it is integrated
II Log portal
The Java Development Manual published by Ali has such a mandatory specification:
The API in the logging system (Log4j, Logback) can not be directly used in the application, but the API in the logging framework ...
Added by Gregghawes on Mon, 07 Mar 2022 09:11:55 +0200
[SpringBoot] basic knowledge of SpringBoot
1, Introduction to SpringBoot
Baidu Encyclopedia:
Spring Boot is a new framework provided by pivot team. It is designed to simplify the initial construction and development process of new spring applications. The framework uses a specific way to configure, so that developers no longer need to define a templated configuration. In this way, ...
Added by BrianM on Mon, 07 Mar 2022 07:03:41 +0200
Build springboot based backend project 1 from 0
idea will build the springboot project in the next step First, create a new project Select name shoulder Language: java Type: Mavan
First, import some common dependencies for testing
After the project is built, the initial directory structure is as follows . idea is the configuration of idea, regardless We mainly write various codes in src ...
Added by mark_kccs on Sun, 06 Mar 2022 17:18:03 +0200
[deep analysis of Spring source code] 09 transaction
1. Transaction usage example in JDBC mode
1) Create data table structure
CREATE TABLE user (
id int(11) NOT NULL auto increment,
name varchar (255) default NULL ,
age int ( 11 ) default NULL ,
sex varchar (255 ) default NULL ,
PRIMARY KEY (id)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
2) Create corresponding PO
public class User ...
Added by evanluke on Sun, 06 Mar 2022 15:18:57 +0200
Spring security global method security: pre authorization and post authorization
1. Can non Web applications use Spring Security for authorization?
so many knowledge points about Spring Security mentioned earlier are designed based on Web applications. So isn't it web applications that can't use Spring Security for authentication and authorization? Spring Security is ideal for scenarios where applications ...
Added by msaz87 on Sun, 06 Mar 2022 14:21:21 +0200
SpringBoot-20-Mybatis code generation
SpringBoot-20-Mybatis code generation
What is Mybatis?
Mybatis is an open source project of apache ibatis, which was officially renamed mybatis in 2010. It is a Java persistence layer framework. The persistence layer framework provided by ibatis includes SqL Maps and Data Access Objects(Daos)
Mybatis features:
Mybatis is easy to learn: you ...
Added by Gier NL on Sun, 06 Mar 2022 13:21:27 +0200
Spring transaction management
1, Transaction Basics
1. Transaction definition
2. Four characteristics of transaction
Atomicity Transaction is the logical work unit of database. All operations included in transaction are either done or not done at all.Consistency The result of transaction execution must be to change the database from one consistency state to another. ...
Added by j9sjam3 on Sun, 06 Mar 2022 12:31:18 +0200
Spring source code analysis
Through the previous study, we have learned how the primary container of spring is initialized, but compared with the unfamiliar XmlBeanFactory, ApplicationContext is obviously more familiar to everyone. The spring advanced container ApplicationContext contains all the things in the primary container XmlBeanFactory. Based on the primary contain ...
Added by ShaolinWood on Sun, 06 Mar 2022 09:58:46 +0200