Skip to content

spring boot2 mybatis sharding-jdbc sharding-sphere demo

License

Notifications You must be signed in to change notification settings

jobmission/demo-sharding-jdbc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#打包

mvn clean install

#运行

java -jar sharding-jdbc-demo-0.0.1-SNAPSHOT.jar

#创建数据库

CREATE DATABASE IF NOT EXISTS product_dev_0 DEFAULT CHARSET utf8 COLLATE utf8_general_ci;
CREATE DATABASE IF NOT EXISTS product_dev_1 DEFAULT CHARSET utf8 COLLATE utf8_general_ci;
create user 'user_dev'@'localhost' identified by 'pass_dev';
grant all privileges on product_dev_0.* to 'user_dev'@'localhost';
grant all privileges on product_dev_1.* to 'user_dev'@'localhost';

#执行单元测试模拟数据

About

spring boot2 mybatis sharding-jdbc sharding-sphere demo

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published