Using mybatis plug-in to develop dynamic change sql

1. Business background requirements At present, the company where the landlord is located uses the same set of database with the advance environment. The purpose of this is to check the real situation on the acceptance line of the advance environment. However, several configuration tables need to be changed separately in the advance environmen ...

Posted by frih on Sun, 26 Sep 2021 11:43:29 +0200

MyBatis - many to one & one to many

SQL processing In practical application, we need not only simple single table query, but also simultaneous query information of other tables by using MyBatis. To solve this problem, a more advanced result mapping is required. preparation in advance SQL preparation We need a student table and a teacher table. The teacher's primary key is id ...

Posted by mcguinkc on Sun, 26 Sep 2021 02:00:29 +0200

MyBatis explains Dao's agent

Chapter III agent of Dao of MyBatis 3.1 dao agent 1.mybatis provides agents: mybatis creates the implementation class object of Dao interface to complete the execution of sql statements. mybatis creates an object to implement class functions instead of your Dao. 2. Requirements for using mybatis agent: 1) the namespace in the mapper fi ...

Posted by nitch on Tue, 21 Sep 2021 12:36:40 +0200

MyBatis learning summary

0. Introduction         This article is used to record my MyBatis learning content. Only some knowledge points that I think are commonly used are compiled. The reference materials are derived from the following:        MyBatis official documents        C language Chinese network compilation materials        Station B crazy ...

Posted by mikegzarejoyce on Mon, 20 Sep 2021 00:02:09 +0200

SSM mybatis usage process

SSM mybatis usage process Official teaching Mybatis usage process 1. Import the coordinates of jar or mvan <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.11</version> <scope>provided</scope> </dependency> <dependency> <groupId&gt ...

Posted by RedMaster on Fri, 17 Sep 2021 12:20:37 +0200

Mybatis's IDEA version is easy to understand

brief introduction What is Mybatis? MyBatis is an excellent persistence layer frameworkIt 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, interfaces and Java POJO s (Plain Old Java ...

Posted by april2008 on Tue, 14 Sep 2021 06:07:41 +0200

Notes on MyBatis2

Important notes about MyBatis2 are in the following Baidu network disk connection. Welcome to learn together Link: https://pan.baidu.com/s/1zGAtbdQElMTgzUZUSg033w Extraction code: 2ywn Here are some easily forgotten points in my learning process to make another record for follow-up review Step 1: write mybatis configuration file <?xml ver ...

Posted by verlen on Tue, 07 Sep 2021 23:01:06 +0200

Summary of common interview questions in JavaWeb mybatis

Summary of MyBatis common interview questions 1. What is MyBatis? 1. MyBatis is a semi ORM (object relational mapping) framework. It encapsulates JDBC internally. During development, you only need to pay attention to the SQL statement itself, and you don't need to spend energy dealing with the complicated processes such as loading driver, ...

Posted by jgmiddel on Tue, 07 Sep 2021 22:49:08 +0200

Berserker says Mybatis notes

Crazy God said MyBatis01: the first program Introduction to MyBatis Environmental description: jdk 8 +MySQL 5.7.19maven-3.6.1IDEA Before learning, you need to master: JDBCMySQL Java Foundation MavenJunit What is MyBatis MyBatis is an excellent persistence layer frameworkMyBatis avoids almost all JDBC code and the proce ...

Posted by jeephp on Thu, 02 Sep 2021 20:47:51 +0200

Mybatis (2) Parameters transfer

Mybatis parameter (Parameters) pass 1.. Single parameter Values of basic type, object type, collection type can be accepted.In this case, MyBatis can use this parameter directly without any processing.   <!-- according to id Query a record in a data table and encapsulate it User object --> <select id="selectById" resultType="com.s ...

Posted by aidema on Tue, 14 Jul 2020 17:19:14 +0200