spring: shardingsphere: datasource: common: type: com.alibaba.druid.pool.DruidDataSource driver-class-name: com.mysql.jdbc.Driver username: password: names: ds0 ds0: jdbc-url: @yu199195 This is my full config.If it is not detailed enough, please refer to https://github.com/DishJi/sha...
type: INLINE props: # algorithm-expression: ds$->{id % 3} algorithm-expression: ds0 sys-user-inline: type: INLINE props: algorithm-expression: sys_user_$->{id % 3} default-database-strategy: standard: sharding-column: id sharding-algorithm-name: database-inline # 分布式序列算法配置 key...
This algorithm applies when data is routed to shards by the year and the week of the year specified in the sharding key value.The data type of the sharding key value is D
type: INLINE props: # algorithm-expression: ds$->{id % 3} algorithm-expression: ds0 sys-user-inline: type: INLINE props: algorithm-expression: sys_user_$->{id % 3} default-database-strategy: standard: sharding-column: id sharding-algorithm-name: database-inline # 分布式序列算法配置 key...