Commit 881909a7a7a42a3232d8c1dfdb7f7a2be570b2be
1 parent
3612f6f3
no message
Showing
1 changed file
with
3 additions
and
5 deletions
account-service.yml
| ... | ... | @@ -82,15 +82,13 @@ sharding.jdbc: |
| 82 | 82 | sql.show: true |
| 83 | 83 | shardingRule: |
| 84 | 84 | tables: |
| 85 | - t_order: | |
| 85 | + Account: | |
| 86 | 86 | actualDataNodes: ms_ds.Account${0..1} |
| 87 | 87 | tableStrategy: |
| 88 | 88 | inline: |
| 89 | - shardingColumn: Created_User | |
| 89 | + shardingColumn: UUID | |
| 90 | 90 | algorithmExpression: Account${UUID.hashCode() % 2} |
| 91 | - keyGenerator: | |
| 92 | - type: SNOWFLAKE | |
| 93 | - column: UUID | |
| 91 | + | |
| 94 | 92 | |
| 95 | 93 | |
| 96 | 94 | #mybatis: | ... | ... |