springboot+mybatis快速集成ShardingSphere实现分库分表
市面上实现分库分表的中间件有挺多的,这次我们说一说ShardingSphere集成到springboot的几个步骤,其实也是很万金油的步骤哈哈。1. 引入依赖我们引入sharding-jdbc的springboot启动器<dependency> <groupId>org.apache.shardingsphere</groupId> <artifactId>sharding-jdbc-spring-boot-starter&l
原创
2020-11-03 18:03:37 ·
2913 阅读 ·
1 评论