Mybatis @Flush annotation analysis

Mybatis @Flush annotation analysis When looking at the source code, I found the @ Flush annotation. I haven't used it before, so I have this article Note: the type of actuator here must be BatchExecutor Let's start with an example @Test public void testShouldSelectClassUsingMapperClass(){ try( //Specify that the type of executo ...

Posted on Fri, 19 Nov 2021 15:52:23 -0500 by Dr.Flink

Common configuration files in mybatis

Configuration files in mybatis 1. Global profile 1.1 properties: read external resources properties file, read in the form of key value, with = For example: Create the db.properties file under resources:   Load in global configuration file:    <properties  resource="db.properties">        <property name="userName" val ...

Posted on Thu, 21 Oct 2021 19:41:56 -0400 by Gighalen