Chapter 2 MybatisPlus general CRUD

Chapter 2 MybatisPlus general CRUD 1. Overview Recall that if we have a User table and have created the corresponding entity class, what do we need to do to implement the CRUD operation of the User table? Steps for Mybatis universal CRUD First, we need to write the UserMapper mapping interface and manually define the CRUD method in the ...

Posted by nivosh on Fri, 18 Feb 2022 17:45:43 +0100

[development experience] principle of automatic generation of machine id by mybatis plus snowflake algorithm

1. Principle of snowflake algorithm The snowflake algorithm uses a 64 bit long number as the globally unique id. Among the 64 bits, one bit is not used, and then 41 bit is used as the number of milliseconds, 10 bit as the working machine id and 12 bit as the serial number. 1 bit, no, because the highest bit in the binary is the sign bit ...

Posted by sheephat on Tue, 01 Feb 2022 18:14:21 +0100

5-TDengine integrates SpringBoot, MyBatis, MyBatisPlus

background In the previous experience, taos client, RESTful Connector and JDBC-JNI are used. This time, we experience an example closer to the actual application scenario: the integration of TDengine with SpringBoot, MyBatis, MyBatisPlus, etc. Officials have brought their own examples, https://github.com/taosdata/TDengine/tree/develop/tests/e ...

Posted by PhilGDUK on Sun, 02 Jan 2022 22:50:05 +0100