sharding (四)不分庫 只分表 (根據 id 主鍵) complex: 複合分片策略,用於多分片鍵的場景

複合分片策略代碼以下:html   <sharding:complex-strategy id="conplexShardingStrategy" sharding-columns="id" algorithm-class="com.study.algorithm.AdminIdShardingAlgorithm" ></sharding:complex-strategy> <sharding:
相關文章
相關標籤/搜索