Logback introduction and configuration file logback XML explanation
Introduction to logback
Logback is another open source log component designed by the founder of log4j. The official website is: http://logback.qos.ch.
logback structure: it is mainly composed of three modules:
Logback core / / basic module. Other modules are based on it
Logback classic / / it is an improved version of log4j. At the same ...
Posted by jeff8j on Sat, 05 Mar 2022 09:33:33 +0100
Spring Boot two lines of code to easily achieve internationalization
i18n internationalization
In development, Internationalization, also known as localization, means that a website (or application) can support multiple different languages, that is, different words can be displayed according to the language type and country / region of the user. It can make it easy for users in different countries and languages ...
Posted by milind24 on Thu, 03 Mar 2022 22:11:38 +0100
Mybatis cache details
MyBatis cache
9.1. MyBatis cache understanding
Like most persistence layer frameworks, MyBatis also provides L1 and L2 cache support
1. L1 cache: be based on PerpetualCache of HashMap Local cache with storage scope of Session,When Session
flush or close After that, the Session All in Cache It will be empty.
2. The mechanism of L2 cache is ...
Posted by onicsoft on Wed, 02 Mar 2022 16:52:25 +0100
Spring framework transaction processing
What is a transaction
1. What is a transaction
Transaction refers to a set of sql statements, in which there are multiple sql statements It may be insert, update, select or delete. We hope that these multiple sql statements can succeed or fail. The execution of these sql statements is consistent and executed as a whole.
2. When do y ...
Posted by Awesome Trinity on Wed, 02 Mar 2022 16:50:26 +0100
MyBatis caching mechanism
13.MyBatis caching mechanism
1. Why cache?
When users frequently query some fixed data, they query these data from the database for the first time and save them in the cache. When users query these data again, they do not need to query through the database, but query in the cache. Reduce the loss caused by network connection and database quer ...
Posted by lajollabob on Fri, 25 Feb 2022 01:37:11 +0100
Multi table query of MyBatis
10. Multi table query of mybatis
Relational database tables are divided into
* one-on-one
* One to many
* Many to many
give an example
The ID number is one to one. A person can only have one ID number. An ID number can only belong to one person.Users and orders are one to many, and orders and users are many to one One user can place multip ...
Posted by rgermain on Wed, 23 Feb 2022 02:19:43 +0100
MyBatis notes: MyBatis cache / madness
1. Cache
What is Cache?
There is temporary data in memory. Put the data frequently queried by users in the cache (memory), and users do not need to query the data from the disk (relational database data file) but from the cache, so as to improve the query efficiency and solve the performance problem of high concurrency system.
2. Why c ...
Posted by rolwong on Sun, 20 Feb 2022 19:58:59 +0100
SQL: mybatis+foreach+like/in robustness to achieve multi conditional input - multiple matching methods fuzzy search / search
Project scenario:
The background of the project is the monitoring and management platform and the alarm configuration section. It is necessary to query and return multiple data information. Among them, it is necessary to optimize the query and return function of subscribers. The original one can only enter one subscriber name for query and opt ...
Posted by Codein on Sun, 20 Feb 2022 09:05:08 +0100
The third part of mybatis - can you understand the high-end usage of mybatis?
Previously, I learned that the integration of single data source and multiple data sources of springboot + mybatis has been used. In this article, let's talk about the high-end usage of mybatis
1. Environmental collocation
1.1 pom dependency
Based on springboot 2.5.6, you can also refer to the first article of mybatis
<!--Mysql Dependent ...
Posted by sella2009 on Sun, 20 Feb 2022 01:32:08 +0100
Chapter 2 MybatisPlus general CRUD
Chapter 2 MybatisPlus general CRUD
1. Overview
Recall that if we have a User table and have created the corresponding entity class, what do we need to do to implement the CRUD operation of the User table?
Steps for Mybatis universal CRUD
First, we need to write the UserMapper mapping interface and manually define the CRUD method in the ...
Posted by nivosh on Fri, 18 Feb 2022 17:45:43 +0100