Understanding read/write splitting configuration
In this section, the read/write splitting configuration is explained to help you quickly understand its related functions. ShardingSphere-JDBC provides you with four configuration methods, and you can freely choose one of them.
Java configuration items
The tables in this section will show you the configuration items related to read/write splitting that you can configure.
- The main class is
ReadwriteSplittingRuleConfiguration
:
In the following table, you will see the primary-secondary data source configuration for the read/write splitting feature, with their respective names, data types, and a description for each:
- The main class is
ReadwriteSplittingDataSourceRuleConfiguration
:
The following code block provides you with a demonstration that you can refer to for configuring read/write splitting in Java:
   ReadwriteSplittingDataSourceRuleConfiguration...