读写分离

    参数解释

    类名称:org.apache.shardingsphere.readwritesplitting.api.ReadwriteSplittingRuleConfiguration

    可配置属性:

    可配置属性:

    类名称:org.apache.shardingsphere.readwritesplitting.api.strategy.StaticReadwriteSplittingStrategyConfiguration

    类名称:org.apache.shardingsphere.readwritesplitting.api.strategy.DynamicReadwriteSplittingStrategyConfiguration

    可配置属性:

    操作步骤

    1. 设置负载均衡算法
    2. 使用读写分离数据源

    相关参考