Beauty of Mybatis source code: 2.1. Build XmlConfigBuilder and prepare the basic environment for parsing XML files

Build XmlConfigBuilder to prepare the basic environment for parsing XML files As mentioned earlier, the XmlConfigBuilder object is mainly used to parse the global Configuration file of mybatis and obtain the instance of the Configuration object. XmlConfigBuilder exposes six construction methods, which can be divided into two categories accordin ...

Posted on Fri, 05 Jun 2020 02:04:30 -0400 by _rhod

Arrangement of knowledge points of Mybatis

Mybatis Environmental Science: JDK 1.8 Mysql 5.7 Maven 3.6.1 IDEA Document links: https://mybatis.org/mybatis-3/zh/index.html Article catalog Mybatis 1. Introduction 1.1 what is MyBatis? 1.2 persistence 1.3 persistent layer 1.4 advantages 2. First Mybatis program 2.1 construction environment 2 ...

Posted on Thu, 04 Jun 2020 23:01:56 -0400 by Johan Beijar

JEECG containerization deployment

There is a Dockerfile in the JEECG code. The basic idea is to take CentOS as the basic image, in which nginx, jdk, MySQL and redis are installed. The compiled front-end files are copied to the designated directory of nginx, the back-end jar files are placed in the root directory, and the configuration f ...

Posted on Thu, 04 Jun 2020 15:18:49 -0400 by nonaguy

JDBC get auto primary key, batch operation

1: Getting database auto increment primary key by jdbc Usage scenario: after inserting a record, you need to directly use the record for other operations. For example, after inserting an order, you need to insert an order item record into the order detail table, and you need to use the primary key as the foreign key o ...

Posted on Thu, 04 Jun 2020 14:26:03 -0400 by starrieyed

Beginner's understanding of Java design pattern

The structural pattern of Java design pattern 1. Adapter mode Adapter mode of class 1.1 1.2 adapter mode for objects 1.3 adapter mode of interface 2. Decoration mode 3. Agent mode 4. Appearance mode 5. Bridge mode 6. Combination mode 7. Enjoy yuan mode 1. Adapter mode Convert the interface of ...

Posted on Thu, 04 Jun 2020 08:41:25 -0400 by meandrew

ORM Framework Series of Wheelmaking Motion~Talk about ORM Framework in my mind

ORM Conceptual Analysis First, comb out the concept of ORM. The spelling of ORM is Object Relation Mapping (Object Relation Mapping), where Object is the object in Object-Oriented Language. This paper uses c# language, so it is a.net object. Relation Mapping is a relationship mapping, which refers to the relationship mapping between.net object ...

Posted on Wed, 03 Jun 2020 22:04:41 -0400 by Major Tom

What is PL/SQL? How to use it?

PL/SQL 1. What is PL/SQL? PL/SQL (Procedure Language/SQL) is a procedural extension of Oracle to SQL language. It refers to the addition of process processing statements (such as branch / condition, loop, variable, type, etc.) in SQL command language, which makes SQL language have process processing ability. By combining the data manipulatio ...

Posted on Wed, 03 Jun 2020 13:02:44 -0400 by wkoneal

Thread factory of the nine Yin scriptures of C + +

The previous article ended the implementation of thread factory class, which mainly introduces the use of thread factory class. Thread interface classes are divided into task model and data model. The process between them is the same, but the data storage is different. Task model thread interface template<typename RET, typename... Args&gt ...

Posted on Wed, 03 Jun 2020 10:38:28 -0400 by dominant

MyBatis special cache explanation

Cache introduction Generally, we use caching technology in the system to improve the efficiency of data query. When we find a batch of data from the database, we put it into the mixed storage (a block of memory area in simple understanding). The next time we query the same data, we can get the data directly from the cache. In this way, less int ...

Posted on Wed, 03 Jun 2020 04:56:20 -0400 by lathifmca

Configure GTID dual master for MySQL 5.7

Environmental planning 192.168.31.178 Master/Slave 192.168.31.179 Master/Slave 192.168.31.178 configuration gtid-mode=ON enforce_gtid_consistency=on log-slave-updates=true master-info-repository=TABLE relay-log-info-repository=TABLE relay_log = /data/mysql/relay.log relay_log_index = /data/mysql/relay_log.index report-port = 3306 sync-m ...

Posted on Tue, 02 Jun 2020 11:05:08 -0400 by root