![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
ShardingSphere
milo.qu
这个作者很懒,什么都没留下…
展开
-
ShardingPhere4.x按周分表实操可用-以留纪念
1.ShardingSphere4.x - pom 注:ShardSphere4.x都支持,都可以使用 2.ShardingSphere yaml配置 图片配置如下: spring: shardingsphere: datasource: master: driver-class-name: com.mysql.cj.jdbc.Driver type: com.alibaba.druid.pool.DruidDataSource .原创 2021-07-23 12:21:33 · 602 阅读 · 0 评论 -
SpringBoot+MybatisPlus3+ShardingSphere4.1.1仅分表实操可用
1.Springboot添加Mybatis-plus过程 略...(这不是重点) 重点:加入ShardingSphere不需要做任何代码更改 2.添加ShardingSphre - jar包 3.添加ShardingSphere配置 配置解释: (1)spring.shardingsphere.datasource.names=master#配置数据源名称,多个逗号分隔 (2)名为master数据源配置 多个数据源配置参考同上; (3)配置分表规则 到这里就可以了,.原创 2021-07-22 12:02:30 · 562 阅读 · 0 评论