Mybatis core profile

configuration properties These properties of the database can be externally configured and dynamically replaced. They can be configured in a typical Java property file or through properties element. Specific official documents Let's optimize our profile The first step; Create a new db.properties in the resource directory driver=com.mysql.jd ...

Added by DeathfireD on Fri, 26 Nov 2021 16:00:16 +0200

Mybatis spring quick start

catalogue   1, Introduction 1. What is mybatis spring? 2. Knowledge base   2, Quick start 3, Integration implementation ① (SqlSessionTemplate) 4, Integration implementation ② (SqlSessionDaoSupport) 5, Business Container management transactions Programming transaction management 6, Using SQLSession 1, Introduction 1. What ...

Added by Jezthomp on Tue, 23 Nov 2021 10:01:58 +0200

springboot multi data source configuration instance

Multi data source configuration is mostly used for automatic switching between read-write libraries or master-slave libraries. However, in some cases, it is also necessary to switch data sources in business The core principles of the current mainstream multi data source schemes, whether using the existing framework or customization, are simila ...

Added by jmr3460 on Mon, 22 Nov 2021 02:59:04 +0200

spring boot integrates MyBatis Generator to automatically generate dynamic sql code

Catalog 1. Background 2. Practice 3. Summary 1. Background          When you recently used mybatis, you saw an article that used yml configuration to simplify the xml configuration MyBatis Generator uses by default, and you wanted to use the MyBatis Generator provided by someone to automatically g ...

Added by alexander.s on Sun, 21 Nov 2021 19:02:16 +0200

Dynamic SQL for MyBatis

Dynamic SQL for MyBatis 1-if tag 1 - when querying - tag 1 It is often used to selectively update or insert the value of a field in update or insert Case: advanced query: only enter the user name for fuzzy query, only enter the mailbox for full matching query. Enter both for matching query <select id="selectByUserWhere" resultType="sys ...

Added by agisthos on Sat, 20 Nov 2021 16:26:59 +0200

Query of database data by Mybatis

Mapping of simple types Returns a simple base type Definition in interface int getAdminCount();//How many pieces of data are returned to the database Specific implementation in xml <select id="getAdminCount" resultType="int"> select count(*) from admin </select> Here I chose a jar package for testing, whi ...

Added by vigge89 on Wed, 10 Nov 2021 11:19:10 +0200

Learning log (November 8, 2021) (1. Springboot integrates Junit, Mybatis, Redis and thymeleaf)

Learning content: learn SpringBoot (Day67) 1. Spring boot integrates Junit 2. Spring boot integrates Mybatis 3. Spring boot integrates Redis 4. Spring boot integrates thymeleaf 1. Spring boot integrates Junit (1) The new version integrates Junit5 by default <!--introduce test Scene launcher for--> <dependency> <groupId&gt ...

Added by suzzane2020 on Mon, 08 Nov 2021 17:16:35 +0200

MyBatis learning and Practice

1, Introduction to MyBatis ==Qianfeng Taoge 039== 1.1 framework concept Framework is the semi-finished product of software, which completes the general operation in the process of software development. Programmers can realize specific functions with little or no processing, so as to simplify the steps of developers in software developmen ...

Added by gargoylemusic on Sun, 07 Nov 2021 03:34:38 +0200

Mybatis learning diary 01 ~ 02

1. Get to know Mybatis 1.1 what is Mybatis and its purpose: 1.MyBatis is an excellent persistence layer framework 2.MyBatis usage: it eliminates almost all JDBC code and the work of setting parameters and obtaining result sets. 3.MyBatis can configure and map primitive types, interfaces and Java POJO s through simple XML or annotations T ...

Added by andrewcy on Sat, 06 Nov 2021 11:18:36 +0200

Hematemesis solves the problem of null fields in MyBatis linked table query (3 tables) (using VO)

background I have just changed my job recently, and the interview questions will be sorted out and put up slowly at the weekend. Let's talk about this problem first. Just entering the new company, the leader directly asked me to participate in a project he was working on, Spring Boot+MyBatis+ Shiro +Vue. Anyway, these technology stacks are not ...

Added by prc on Fri, 05 Nov 2021 07:32:21 +0200