1.1 what is mybatis
● MyBatis is an excellent persistence layer framework ● it supports custom SQL, stored procedures and advanced mapping. ● MyBatis eliminates almost all JDBC code and the work of setting parameters and obtaining result sets. MyBatis can configure and map primitive types, interfaces and Java POJO s (Plain Old ...
Added by adrianl on Tue, 08 Mar 2022 14:11:44 +0200
Invokebeanfactoryprocessors is a very important method in Spring startup. We need to understand several concepts before parsing the source code of this method.
1.1. Instantiation of common objects
We know that ordinary java files will be compiled into java files when Java runs When we instantiate an object into memory, we u ...
Added by sara_kovai on Tue, 08 Mar 2022 13:06:07 +0200
Only in cluster mode mongo Can be used changeStream The function of,
This function is mainly to monitor in real time mongo Changes to the database,
And obtain the changed information,
changeStream The principle is to monitor all the time mongo of opLog Log changes to this file,
To read this file, as we all know, we have mongo The database will ...
Added by avario on Tue, 08 Mar 2022 11:17:43 +0200
The author is a junior from Heyuan. The following notes are some shallow experience of the author's self-study road. If there are mistakes, please correct them. In the future, we will continue to improve our notes to help more Java lovers get started.
1. Import JDBC and mysql dependencies
In POM XML import t ...
Added by jredwilli on Tue, 08 Mar 2022 07:59:29 +0200
SpringBoot notes 01 – Spring IOC
1.1 what is IOC
The full name of IOC is Inversion of Control, which is a design concept. In the traditional Java SE code, objects are created through new inside an object, which is the program's initiative to create the objects to rely on. The idea of IOC is to design a container to create these ...
This paper records the process of deploying Apollo according to the official Apollo documents. The place worthy of reference is the pit.
Assuming you have a certain understanding of Apollo, you won't introduce Apollo itself too much. For documents, please refer to: https://ctripcorp.github.io/apollo/#/zh/README
The deploye ...
Added by xterra on Mon, 07 Mar 2022 22:04:46 +0200
Our SpringBoot project relies on Dubbo, RocketMQ, Nacos, etc. occasionally one day, we found that we didn't register with SpringBootAdmin after startup, so we checked the reasons, searched online and found this article The springboot project starts and runs normally, but the port cannot listen for events and solutions The situation is ...
Added by apulmca2k4 on Mon, 07 Mar 2022 20:33:16 +0200
Shiro takes notes, Xiaobai records the learning process, and the boss takes a detour
I What is Shiro
Shiro, like Security, is a Security framework. It can help us realize authentication, authorization, MD5 encryption, caching and other functions.
Shiro has three elements: Subject, Security Manager and Realm.
Subject: the current subject ...
Added by crispytown on Mon, 07 Mar 2022 18:40:45 +0200
We often use timed tasks in daily project development. For example, make statistics and settlement in the early morning, start planning activities, automatically change the unpaid orders that exceed 24 hours to cancelled status, and automatically change the orde ...
Added by danoli on Mon, 07 Mar 2022 10:51:20 +0200
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 pablocullen on Mon, 07 Mar 2022 10:42:16 +0200