基于之前的源码初探,这里进行源码的深入探究,与之前的4.1.1不同,本次版本定位为5.0.0-RC1-SNAPSHOT(尚未发布),本次定位仍为初探,且探究路程与4.1.1时的路径大致相同,如下:
- 配置文件读取
- 路由信息获取
- SQL改写
- 获取资源
- SQL语句的执行
- 结果归并
本次探究版本如下:
spring-boot:1.5.20.RELEASE
mybatis:1.3.0
ShardingSphere:5.0.0-RC1-SNAPSHOT
样例项目地址:https://github.com/JiekerTime/QuickStartOfShardingSphereJDBC
注意,案例版本为5.0.0-alpha,在5.0.0-RC1-SNAPSHOT中datasource中的common节点已被移除,请自行修改。
Based on the previous preliminary exploration of source code, the in-depth exploration of source code here is different from the previous 4.1.1. This version is positioned as 5.0.0-RC1-SNAPSHOT (not yet released), and this positioning is still preliminary, and the path of inquiry is roughly the same as that of 4.1.1, as follows:
- Read configuration files
- Route information acquisition
- SQL rewrite
- Obtain resources
- SQL statement execution
- Merge results
This inquiry version is as follows:
spring-boot:1.5.20.RELEASE
mybatis:1.3.0
ShardingSphere:5.0.0-RC1-SNAPSHOT
Sample Project address: https://github.com/JiekerTime/QuickStartOfShardingSphereJDBC
Note that the case version is 5.0.0-alpha. The common node in datasource in 5.0.0-RC1-SNAPSHOT has been removed. Modify it yourself.
