# MybatisPlus多租户动态切换数据源 **Repository Path**: FnTop/MutiTenantDs ## Basic Information - **Project Name**: MybatisPlus多租户动态切换数据源 - **Description**: 🥭SpringBoot+Mybatis-plus 搭建的多租户、分表分库实例 - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 6 - **Forks**: 2 - **Created**: 2024-01-26 - **Last Updated**: 2025-04-18 ## Categories & Tags **Categories**: Uncategorized **Tags**: mybatis-plus ## README # 项目说明 🥭基于`SpringBoot + Mybatis-plus + shardingsphere-jdbc + dynamic-datasource` 搭建的多租户动态数据源Demo # 分支说明
分支 | 说明 |
master | 基于租户ID+动态数据源分库 |
sharding-jdbc-spring-boot-starter | 基于租户ID+动态数据源+sharding-jdbc,test1库作为默认库,test2库分表 |
shardingsphere-jdbc-core-spring-boot-starter | 基于租户ID+动态数据源+shardingsphere-jdbc-core 分库分表 |
功能 | 预览 |
SQL历史自动维护插件 |
![]() ![]() |
动态数据源与多租户 |
![]() ![]() ![]() ![]() |
分页插件 | ![]() |
乐观锁插件 |
![]() ![]() |
创建时间、更新时间填充 |
![]() |
雪花算法 |
![]() |
数据权限插件 | 参考ruoyi-vue-plus |
防前端SQL注入解析器 |
![]() |
逻辑删除 |
![]() ![]() |
spy SQL监控 |
![]() |
logback 彩色日志 |
![]() |