Mybatis source code analysis -- load Configuration

Mybatis source code analysis (2) - loading Configuration    as seen above, the Configuration object holds all the Configuration information of Mybatis, that is, all the information in mybatis-config.xml and mapper.xmlAre available in the Configuration object. So in general, there is only one Configuration object. From the previous art ...

Posted by HNX on Fri, 08 Nov 2019 11:18:15 +0100

How to execute SQL in Mapper interface of Mybatis

Preface In many ORM frameworks, Mybatis is used by more and more Internet companies. The main reason is that Mybatis is easy to use and flexible to operate. This series is going to ask questions to learn more about Mybatis from the source layer. Put questions to The most common way to use Mybatis is to get a Mapper interface object, and the ...

Posted by verN on Fri, 08 Nov 2019 10:49:44 +0100

Spring series 7: four ways for spring to integrate mybatis

I. use annotation to integrate mybatis The project contents are as follows Step 1: import the jar package <build> <resources> <!-- mapper.xml File in java Directory --> <resource> <directory>src/main/java</directory> <includes> ...

Posted by akop on Tue, 05 Nov 2019 22:10:14 +0100

The plug-in mechanism of mybatis

I. Introduction to mybatis plug-in As for the plugins of mybatis, I think you've used them, such as the most commonly used reverse engineering, which generates model, dao, xml files and paging plugins according to the table structure. What's the working principle of these plugins, such as paging plugins? Why can it change the sql statements we ...

Posted by hustler on Sun, 03 Nov 2019 13:27:50 +0100

Mybatis dynamic SQL [if tag, where tag, SQL tag and include tag, foreache tag]

Requirement: query users by gender and name SQL statement: Select id, username, birthday, sex, address from 'user ` where sex = 1 and username like'% 3% ' Problems: There may be only one A.sex and username attribute, and the other is null or empty [use if tag] B. when the sex/username property is null or empty, the ...

Posted by theonewhotopes on Thu, 31 Oct 2019 15:35:31 +0100

MyBatis - dynamic SQL

I. Introduction to dynamic SQL   dynamic SQL is the most powerful function of MyBatis, in essence, splicing SQL statements according to conditions.   I always thought that dynamic SQL was only supported by the configuration of XxxMapper.xml, but I didn't expect that MyBatis in the annotation v ...

Posted by centenial on Tue, 29 Oct 2019 18:14:50 +0100

A preliminary study of sub database and sub table

This article comes from: Daniel lin07's blog "preliminary analysis of sub database and sub table" Preface Sub database and sub table is a very common optimization work in enterprise development data storage, but it has not been carefully understood before. Until recently, I contacted a Spark table to synchronize tens of millions of ...

Posted by Mehdi on Mon, 28 Oct 2019 07:30:03 +0100

Mybatis plus learning and CRUD cases

Understanding mybatis plus describe MyBatis plus (MP for short) is an enhancement tool of MyBatis. Based on MyBatis, only enhancements are made and no changes are made. It is generated to simplify development and improve efficiency. Vision achieved Our vision is to become the best partner of MyBat ...

Posted by Brunda on Sun, 27 Oct 2019 11:18:41 +0100

[easyexc] Alibaba easyexcel version 2.0.5 simple reading and writing example

Ali easyexcel is a toolkit for reading and writing Excel based on the package of poi, which mainly solves the problem of large memory occupied by reading large file poi, and also provides some simple excel operation API. But I found it on the Internet. There are few official explanations. The example ...

Posted by Andre_Ng on Fri, 25 Oct 2019 16:29:10 +0200

Analysis of MyBatis binding module

Package of binding function code org.apache.ibatis.binding binding module function Encapsulating ibatis programming model In the ibatis programming model, SqlSession is the entry of sql execution. The practical method is sqlSession.selectOne(namespace+id, parameter list) (for example, sqlSession.selectOne("com.enjoylearning.mybatis.mapper ...

Posted by Dilbert137 on Tue, 22 Oct 2019 17:02:45 +0200