简介
sharding-jdbc案例,版本5.1.2
springboot + mybatis-plus + sharding-jdbc
模块说明
- read-write 简单的读写分离
- db-sharding 简单的不同表在不同库配置 tb_order表使用sharding-jdbc的雪花算法生成id tb_storage表使用mybatis-plus生成uuid
- db-read-write-sharding 不同表在不同库配置 + 静态读写分离
- table-sharding 不分库,只分表案例
- table-read-write-sharding 不分库,只分表+读写分离案例
- db-table-sharding 分库分表(顺便测试下本地事务)
- db-table-read-write-sharding 分库分表 + 读写分离
最后
个人认为此项目代码和注释足以让人看懂,无需博客描述加以赘述。
这是一篇引流博客。
Original: https://www.cnblogs.com/konghuanxi/p/16454116.html
Author: 王谷雨
Title: Sharding-jdbc 5.1.2案例
原创文章受到原创版权保护。转载请注明出处:https://www.johngo689.com/583254/
转载文章受原作者版权保护。转载请注明原作者出处!