SpringBoot+thymeleaf+layui+mybatis realize paging with the help of pagehelper plug-in
This paper records the implementation of simple paging function.
Relevant environment:
Spring boot framework;
Template engine: thymeleaf;
Front end framework: layui;
Framework of persistence layer: mybatis;
Paging plug-in: pagehelper;
Write some nonsense.
(please skip it if you are eager to realize th ...
Added by AIS4U on Wed, 05 Feb 2020 08:47:45 +0200
Getting started with MyBatis to customize the MyBatis framework
First MyBatis program (XML configuration)
In the previous article, I briefly summarized some limitations of native JDBC, and introduced the MyBatis framework. I sorted out how to build the working environment of MyBatis in detail
In this article, we start our first routine on the basis of setting up ...
Added by Talguy on Sun, 02 Feb 2020 12:00:51 +0200
spring+springmvc+mybatis (ssm) integration
layout: post
author: zjhChester
header-img: img/post-bg-os-metro.jpg
catalog: true
tags:
- ssm integration
spring+springmvc+mybatis (ssm) integration
1. Preliminary preparation
1. Build maven project, check skeleton construction, check web app
[external link image transfer failed. The sour ...
Added by devinemke on Sat, 01 Feb 2020 10:44:45 +0200
Mybatis learning notes-02 (in update)
Article directory
1. Add operation
1.1 add 'insertUser()' method in UserMapper interface
1.2 configure add operation in Mapper mapping file 'UserMapper.xml'
1.3 test add operation
1.4 test results
2. Delete
2.1 add the 'deleteUserById()' method in the UserMapper interface
2.2 configure deletion in ...
Added by matchu on Wed, 29 Jan 2020 06:37:13 +0200
Reading the source code of mybatis: initialization of mybatis
Reprinted from Reading the source code of mybatis (2): initialization of mybatis
1. Initialization entry
//Mybatis obtains SqlSession through SqlSessionFactory, and then can interact with the database through SqlSession
private static SqlSessionFactory getSessionFactory() {
SqlSessionFactory se ...
Added by Pioden on Mon, 27 Jan 2020 07:10:47 +0200
springboot multi data source -- mybatis
Multi database is to use multiple databases in different database instances, or different databases in the same database instance.
Start to implement JDBC template multiple data sources:
github: https://github.com/fengqing11/datasources-mybatis
Complete project structure:
Create database:
There are tw ...
Added by My220x on Sun, 19 Jan 2020 10:47:51 +0200
The first program of Mybatis written by Mybatis
Written in the front: this note is part of the concept that I organized by following the madness teacher's video self-study. Please refer to Baidu Encyclopedia and official documents
System environment:
jdk 12
mysql 8.0.17
maven 3.6.2
IDEA
What is MyBatis
MyBatis an excellent persistence fram ...
Added by Simply Me on Sun, 19 Jan 2020 09:14:16 +0200
Caching of MyBatis query results
The caching of mybatis refers to caching query results. When using the same sql statement and passing in the same parameters to query in the future, the query results can be obtained directly from the local caching of mybatis without querying the database.
mybatis's cache includes the first level cache and the second level cache. The first leve ...
Added by grandeclectus on Sun, 12 Jan 2020 13:53:13 +0200
Mybatis framework 7: integrating Spring in three ways
Required jar package:
Create a new lib folder and put it into the jar package. After build path -- > add to build path:
Original Dao development example:
Under src: create a new core configuration file sqlMapConfig.xml:
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE configuration
PUBLIC "-//mybatis.org//DTD Config 3.0//EN"
...
Added by rowman on Fri, 10 Jan 2020 19:49:24 +0200
SpringBoot Series Tutorial Mybatis+Annotations Integration
SpringBoot Series Tutorial Mybatis+Annotations Integration
The previous blog post described SpringBoot's process of integrating mybatis, but the way xml works always feels a bit frustrating; this article introduces a noxml usage posture that supports CURD purely with annotations
<!-- more -->
I. Environment
This article uses SpringBoot ...
Added by shiny_spoon on Tue, 07 Jan 2020 05:47:25 +0200