Advanced usage of mybatis
1, Dynamic SQL
one of the powerful features of MyBatis is its dynamic SQL. If you have experience using JDBC or other similar frameworks, you can realize how painful it is to splice SQL statements according to different conditions. When splicing, make sure you don't forget the necessary spaces, and pay attention to omitting the comm ...
Posted on Mon, 06 Dec 2021 21:38:42 -0500 by DrDre
Use and optimization of MyBatis
catalogue
Introduction to MyBatis
Basic use of MyBatis
1. Prepare database information
2. Create a maven project
3. Import the corresponding jar package into the pom.xml file
4. Create the correspo ...
Posted on Sun, 05 Dec 2021 20:39:34 -0500 by bmpco
Association query of mybatis
1, Simple one-to-one cascade query
based on the previous chapters, some simple applications can be handled, but in actual projects, it is often associated table queries, such as one-to-one, one to many, etc. How are these queries handled? Let's talk about this. The previous section describes some operations of single table mapping, ...
Posted on Sun, 05 Dec 2021 19:47:22 -0500 by thewooleymammoth
Wildlife protection system based on Spring MVC + Spring + MyBatis
Resource download: https://download.csdn.net/download/weixin_44893902/45603787
Exercise point design: fuzzy query, delete, add, modify
1, Language and environment
Implementation language: JAVA language.Environment requirements: MyEclipse/Eclipse + Tomcat + MySql.Use technology: Jsp+Servlet+JavaBean or spring MVC + Spring + mybatis.
2 ...
Posted on Sun, 05 Dec 2021 17:52:36 -0500 by bigdaddysheikh
Dynamic SQL of Mybatis
Mybatis
12. Dynamic SQL
12.1 introduction
What is dynamic SQL: dynamic SQL refers to generating different SQL statements according to different conditions.
Using the feature of dynamic SQL can completely get rid of this pain.
Dynamic SQL elements are similar to JSTL or XML based text processors.
In previous versions of MyBatis, there we ...
Posted on Sun, 05 Dec 2021 06:22:21 -0500 by sincejan63
Spring Boot with MyBatis and JPA
Spring Boot with MyBatis and JPA
What is Spring Boot
Spring features
Ability to create stand-alone Spring Boot applications Embed Tomcat,Jetty Undertow and don't need to deploy them Provides "starters" poms to simplify Maven configuration
https://www.cnblogs.com/qlqwjy/p/7979159.html
Spring brings a lot of magic into ...
Posted on Fri, 03 Dec 2021 17:20:38 -0500 by djs1
Introduction and use of MyBatis framework (the children next door will talk about it) -- Basic
1: Overview
MyBatis is an excellent persistence layer framework that supports common SQL queries, stored procedures and advanced mapping. MyBatis eliminates almost all the manual setting of JDBC code and parameters and the retrieval of result sets. MyBatis uses simple XML or annotations for con ...
Posted on Fri, 03 Dec 2021 10:11:03 -0500 by gasxtreme
SpringBoot+vue imitation Netease cloud music website - database design
1, Demand analysis
Imitate Netease cloud, then follow Netease cloud music if you need it. First of all, you can listen to songs and view singers. Singers have corresponding albums. There are users. Users can create song lists and collect song lists. Song lists can add or delete songs. Users can also comment on songs, albums, song lists and fan ...
Posted on Wed, 01 Dec 2021 04:55:32 -0500 by xgrewellx
Getting started with MybatisPlus (involving most common operations)
MybatisPlus
1, MybatisPlus overview
1. Knowledge required before learning MybatisPlus
Mybatis,Spring,SpringMVC
2. Why learn MybatisPlus
Mybatis itself is used as a framework to simplify our CRUD process, and MybatisPlus is used together with mybatis to further simplify our CRUD process and complete CRUD automatically.
Original words of ...
Posted on Tue, 30 Nov 2021 19:45:09 -0500 by brownca
SSM Framework Integration
SSM Framework Integration
Spring MVC is responsible for implementing MVC design patterns
MyBatis is responsible for the data persistence layer
Spring is responsible for managing the creation and dependency injection of related objects used by Spring MVC and MyBatis
SSM Framework Integration, actually Spring and MyBatis Integration, beca ...
Posted on Tue, 30 Nov 2021 14:39:51 -0500 by notsleepy