Mybatisplus builds multi tenant mode (shared library table, distinguishing tenants by tenant id field)

preface In recent work, I have encountered application scenarios of multi tenant mode, for which I have consulted a lot of materials. After analyzing the feasibility, the shared library table is selected, which is realized by distinguishing tenants according to the tenant id field. This record is convenient for future reference 1. Before ...

Added by gmann001 on Fri, 11 Feb 2022 04:30:15 +0200

SpringBoot2.4.x integrate mybatis plus3 4. X (detailed tutorial)

Differences and relations between Mybatis and MybatisPlus Mybatis plus is an enhancement tool for mybatis. It is only enhanced on the basis of mybatis without change. Mybatis plus supports all the native features of mybatis. Therefore, the introduction of mybatis plus will not have any impact on the existing mybatis architecture. Mybatis plus ...

Added by bpops on Sat, 22 Jan 2022 22:05:01 +0200

Mybatis plus common annotations and plug-ins

Mybatis plus common annotations and plug-ins (II) 1, @ TableName value attribute The name of the entity class is User and the name of the database table is t_user @TableName(value = "t_user") public class User { //... } 2, @ TableId 1. Snowflake algorithm By default, the id column of the database is generated by the strategy based o ...

Added by ultrus on Wed, 19 Jan 2022 02:39:05 +0200