Abstract: The original source is http://www.iocoder.cn/Sharding-JDBC/jdbc-implement-and-read-write-splitting/ "Yaodao source code" welcome to reprint, keep the abstract, thank you!
This article is mainly based on the official version of Sharding-JDBC 1.5.0
- 1 Overview
- 2. unspported package
- 3. adapter package
- 3.1 WrapperAdapter
- 3.2 AbstractDataSourceAdapter
- 3.3 AbstractConnectionAdapter
- 3.4 AbstractStatementAdapter
- 3.5 AbstractPreparedStatementAdapter
- 3.6 AbstractResultSetAdapter
- 4. Insert flow
- 5. Query process
- 6. Read-write separation
- 666. Easter Egg