Commit ae99410a68df740fab8d2b104460fa15ccc8fc1e

Authored by sunninghai
1 parent 8df2e9c1

no message

Showing 1 changed file with 14 additions and 2 deletions
account-service.yml
@@ -75,11 +75,23 @@ sharding.jdbc: @@ -75,11 +75,23 @@ sharding.jdbc:
75 username: test 75 username: test
76 password: ENC(8aea42e66b0928c44cd8f861a9d558e6) 76 password: ENC(8aea42e66b0928c44cd8f861a9d558e6)
77 masterSlaveRule: 77 masterSlaveRule:
78 - name: ds_ms 78 + name: ms_ds
79 masterDataSourceName: ds_master 79 masterDataSourceName: ds_master
80 slaveDataSourceNames: ds_slave0 80 slaveDataSourceNames: ds_slave0
81 props: 81 props:
82 - sql.show: true 82 + sql.show: true
  83 + shardingRule:
  84 + tables:
  85 + t_order:
  86 + actualDataNodes: ms_ds.Account${0..1}
  87 + tableStrategy:
  88 + inline:
  89 + shardingColumn: Created_User
  90 + algorithmExpression: Account${UUID.hashCode() % 2}
  91 + keyGenerator:
  92 + type: SNOWFLAKE
  93 + column: UUID
  94 +
83 95
84 #mybatis: 96 #mybatis:
85 #configLocation: classpath:mybatis-config.xml 97 #configLocation: classpath:mybatis-config.xml