![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
ShardingSphere
文章平均质量分 79
luzaichun
这个作者很懒,什么都没留下…
展开
-
分库分表shardingsphere-jdbc+springboot2.x+mybatisplus
版本信息(请特别注意springboot和shardingsphere-jdbc的版本,不同版本区别很大): springboot:2.1.5.RELEASE shardingsphere-jdbc-core-spring-boot-starter:5.0.0-alpha 测试用库表 分两个物理库demo1,demo2;每个库user表分为user_0,user_1,user_2三张表。 每张表结构都相同: create table demo1.user_0 ( id bigint not null原创 2021-05-14 16:51:17 · 1237 阅读 · 0 评论 -
读写分离Springboot2.x+ShardingSphere-JDBC+mybatis爬坑实录
通过本案例测试,务必保持版本统一,不同版本差别很大,可能会出现一些莫名错误 版本信息: springboot:2.1.5 shardingsphere-jdbc-core-spring-boot-starter:5.0.0-alpha 1. 项目依赖: <dependencies> <dependency> <groupId>org.springframework.boot</groupId> .原创 2021-05-07 11:11:27 · 553 阅读 · 2 评论