Mybatis study notes
Mybatis study notes
This article is to watch the UP master crazy God of station B say about Video of Mybatis explanation , reference Official documents of Mybatis And CSDN bloggers Black heart white lotus Personal Mybatis notes sorted out by relevant articles. Due to the author's limited ability, there are inevitable mistakes in the article. Y ...
Posted by Isityou on Mon, 04 Oct 2021 23:05:02 +0200
MyBatis study notes
MyBatis
1, Framework overview
1. Three tier architecture
Interface layer: deal with users, accept user request parameters and display processing results. (jsp,html,servlet)Business logic layer: accept the data transmitted by the interface layer, calculate logic, call the database and obtain data.Data access layer: it is to access the datab ...
Posted by etnastyles on Sun, 03 Oct 2021 01:15:55 +0200
Summary of Mybatis
Summary of Mybatis
1. What is mybatis
Mybatis is an excellent persistence layer framework that supports custom sql, stored procedures, and advanced mapping. Its prototype is ibatis, which was included by the Apache Foundation and renamed mybatis
2. What can mybatis do?
Mybatis can configure and map primitive types using simple XML or annota ...
Posted by rathersurf on Thu, 30 Sep 2021 19:35:47 +0200
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> ...
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