分库分表ACID解决方案(2)shardingjdbc+springboot Demo








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




猜你喜欢

转载自blog.csdn.net/luozhonghua2014/article/details/80159926