demo源码:https://github.com/luozhonghua/springboot-demo
原理
1、自定义分库分表
2,分库分表唯一性主键
Twitter Snowflake算法实现
DefaultKeyGenerator
详情:http://www.iocoder.cn/Sharding-JDBC/distributed-id/
shardingjdbc 中文http://shardingjdbc.io/index_zh.html
demo源码:https://github.com/luozhonghua/springboot-demo
原理
1、自定义分库分表
2,分库分表唯一性主键
Twitter Snowflake算法实现
DefaultKeyGenerator
详情:http://www.iocoder.cn/Sharding-JDBC/distributed-id/
shardingjdbc 中文http://shardingjdbc.io/index_zh.html