Basic introduction and usage of mybatis plus

mybatis_plus basic introduction I Basic introduction Mybatis plus (MP for short) is an enhancement tool for mybatis. Based on mybatis, it only makes enhancements and does not change. It is born to simplify development and improve efficiency. This is an official definition. For more introduction and features of mybatis plus, please refer to My ...

Posted by Emperio on Fri, 24 Dec 2021 10:25:54 +0100

The first Mybatis program

1. What is MyBatis MyBatis is an excellent persistence layer framework, which supports customized SQL, stored procedures and advanced mapping. MyBatis avoids almost all JDBC code and manually setting parameters and getting result sets. MyBatis can use simple XML or annotations to configure and map native information, and map interfaces and ...

Posted by baber_abbasi on Fri, 24 Dec 2021 05:33:10 +0100

Spring -- declarative transaction

Spring - declarative transactions Our journey is the sea of stars, not the dust of the world Declarative transaction Review transactions Transaction is very important in the project development process. It involves the problem of data consistency, which should not be careless!Transaction management is a necessary technology in ...

Posted by ready2drum on Thu, 23 Dec 2021 22:37:06 +0100

File upload and download case based on SpringBoot and Mybatis

File upload and download case based on SpringBoot and Mybatis This case is based on the actual combat of the [bad programmer] enterprise file upload and download project based on SpringBoot and Mybatis. BiliBili link: https://www.bilibili.com/video/BV1764y1u7gn?p=1 Effect achieved 1. Users need to log in first. We use shiro authentication to ...

Posted by k994519 on Thu, 23 Dec 2021 02:17:59 +0100

MybatisPlus beginner's notes~

1. MybatisPlus As always, the most important official documents are out first! Official documents 1. Import dependency <!--mysql--> <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <version>8.0.17</version&gt ...

Posted by juschillinnow on Wed, 22 Dec 2021 22:03:24 +0100

Mybatis integrates with spring and Aop integrates the pagehelper plug-in

Objectives: Mybatis and spring integrationAop integration pagehelper plug-in 1, Mybatis and spring integration Comparison of hibernate and spring integration 1. Import pom dependencies 1.1 add spring related dependencies (5.0.2.RELEASE)        spring-core        spring-beans        spring-context        spring-orm        spr ...

Posted by udendra on Tue, 21 Dec 2021 23:33:07 +0100

Joint query and nested mapping in mybatis

Joint query and nested mapping scenario Joint query refers to a query in which the query statement is associated with multiple tables such as left join or full table connection. This query involves multiple tables and generally finds the fields of multiple tables, and the corresponding resultMap needs to be mapped into multiple objects, as sho ...

Posted by croakingtoad on Mon, 20 Dec 2021 10:44:36 +0100

MyBatis inserts thousands of data in batches. Please use Foreach with caution

MyBatis inserts thousands of data in batches. Please use Foreach with caution Recently, a long-time Job in the project has the problem of high CPU consumption. After investigation, it is found that the main time is spent inserting data into MyBatis in batches. The mapper configuration is done with a foreach loop, almost like this. (due to th ...

Posted by gizmola on Sat, 18 Dec 2021 22:13:45 +0100

Employee attendance system

Requirements: 1, User management 1. User list List fields: name, login name, gender, mobile phone number, salary, position and role List buttons: edit, enable, disable, reset password Search criteria: user name, status (enabled or disabled) Top button: Add User Import, export 2, Attendance management 1. Clock in Buttons: clock in at work (8:00 ...

Posted by phpology on Sat, 18 Dec 2021 17:59:48 +0100

Mybatis, this is enough, simple and comprehensive! (recommended Collection)

Mybatis 1. Introduction MyBatis was originally a part of apache Open source project iBatis, 2010 project Migrated from apache software foundation to [Google Code]( https://baike.baidu.com/item/google Code / 2346604) and renamed MyBatis. Moved to in November 2013 Github. iBATIS comes from the combination of "internet" and "aba ...

Posted by fourlincoln10 on Sat, 18 Dec 2021 10:44:54 +0100