# shardingsphere-springboot **Repository Path**: biiing/shardingsphere-springboot ## Basic Information - **Project Name**: shardingsphere-springboot - **Description**: SpringBoot集成apache shardingsphere - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 3 - **Forks**: 1 - **Created**: 2020-05-13 - **Last Updated**: 2022-03-11 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # shardingsphere-springboot #### 介绍 SpringBoot + MyBatis集成apache shardingsphere #### 软件架构 src/main/sql/init.sql为数据库初始化脚本 #### 安装教程 1. 运行sql脚本 2. 调整properties里的数据库账号信息 3. 运行main方法或者mv spring-boot:run -spring.profiles.active=db #### 使用说明 1. application-table为分表不分库 2. application-db为分库不分表 3. application-db-table为分表+分库 4. application-encryptor.properties为数据脱敏 #### 说明 1. shardingsphere的SNOWFLAKE算法没解决时钟回拨的问题,建议使用其他第三方的分布式ID生成算法(百度uid-generator/美团Leaf等)