下面是小编写的demo:
mybatis+jdbc_sharding+通用mapper 分表分库demo:https://github.com/PrettyPanda/jdbc_sharding_mybatis
hibernate+jdbc_sharding 分表分库demo:https://github.com/PrettyPanda/sharding_jdbc_hibernate
课外阅读:
SpringCloud easy入门:https://blog.csdn.net/forezp/article/details/70148833
原文:http://blog.51cto.com/13496382/2141909