Skip to content

1.0.0.M2

Compare
Choose a tag to compare
@hellojavaer hellojavaer released this 26 Apr 12:14
  • provide a simpler way to configure route rule
SpelShardRouteRule rule = new SpelShardRouteRule();
rule.setScRouteRule("{#scName}_{#format('%02d', #sdValue % 4)}");
rule.setTbRouteRule("{#tbName}_{#format('%04d', #sdValue % 8)}");