Detailed explanation of spring boot integration Mybatis framework

preface Life is a journey. The road you have traveled is the life you have woven. We can't predict the future road. However, we can grasp ourselves now, cherish everything around us, walk down-to-earth, take our own road, and don't leave a regretful scenery in life! For enterprise development, stability and convenience are the two ...

Added by erfaan on Sat, 15 Jan 2022 16:55:53 +0200

MyBatis query whole process source code analysis

As an excellent persistence layer framework, MyBatis has been used by more and more companies. In the face of this framework we use every day, how can we not read its source code well? I spent a few days reading and debugging the MyBatis source code. Now I share some of my understanding with you. If there are errors, please correct them. ​ ...

Added by jviney on Fri, 14 Jan 2022 16:09:20 +0200

Mybatis: source code analysis - interceptor plug-in

Implementation of Mybatis Interceptor: Examples of official documents: https://mybatis.org/mybatis-3/zh/configuration.html#plugins The interceptor uses the responsibility chain mode + dynamic agent + reflection mechanism. The interceptor can monitor some data permissions, SQL execution time and performance without invading business code. Cus ...

Added by tensitY on Fri, 14 Jan 2022 08:33:15 +0200

SpringBoot advanced usage

1, Description of spring boot integration Mybatis 1. Introduction to Mybatis MyBatis is an excellent persistence layer framework, which 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 ...

Added by DavidGS on Fri, 14 Jan 2022 01:04:12 +0200

Campus recruitment summary

Create a springboot project Compilation knowledge 1. target If mapper If the XML file is not included in the target, it should be added in the build first, and then the clean Maven project should be compiled again <build> <resources> <resource> <directory>src/main/java</direc ...

Added by Malkavbug on Fri, 14 Jan 2022 00:18:32 +0200

Cache module of mybatis

Cache module of mybatis There are L1 (enabled by default) and L2 caches in mybatis. Caching can speed up queries and reduce the number of connections to db. The cache module belongs to the basic support layer of mybatis. At org apache. ibatis. Cache package. --------org.apache.ibatis.cache -------------------------------decorators ---------- ...

Added by gabriellevierneza on Wed, 12 Jan 2022 08:07:44 +0200

Mybatis configuration resolution (core configuration file)

4. Configuration resolution 4.1. Core configuration file Mybatis's configuration file contains settings and attribute information that will deeply affect mybatis's behavior mybatis-config.xml properties a key settings a key typeAliases a key typeHandlers objectFactory (object factory) plugins Environment focus Environment (environment variab ...

Added by ether on Tue, 11 Jan 2022 11:13:35 +0200

SSM build notes!

1.SSM component Spring + SpringMvc + Mybatis 2. This tutorial implements the construction of SSM based on idea and maven 3. Start:       1. Create a maven web project using idea Note: you must select the configured Maven environment {with alicloud}       2. Check whether the project structure is normal and whether ...

Added by DJTim666 on Tue, 11 Jan 2022 02:24:20 +0200

Springboot + MyBatis introductory training 3 multi data source and cache and data connection pool settings

This paper introduces how to configure multiple data sources to connect to the database, set the secondary cache function of sql text, and configure multiple data sources and data connection pool in MyBatis project. For everyone to develop and practice at ordinary times to provide reference and query tool articles. Code download Baidu online d ...

Added by Atanu on Tue, 11 Jan 2022 01:28:24 +0200

SSM construction notes

SSM construction notes Components of ssm: spring+spring mvc+mybatis This tutorial uses Java 8, idea, and maven Start the tutorial: Create a maven web project using idea. Note that you must select your configured Alibaba cloud maven, or the creation will fail If you see build success in the console, it will be regarded as a success. I ...

Added by IwnfuM on Mon, 10 Jan 2022 21:41:09 +0200