|
|
@ -66,6 +66,17 @@ spring: |
|
|
|
shardingColumn: create_time |
|
|
|
# 分片算法名称,不支持大写字母和下划线,否则启动就会报错 |
|
|
|
shardingAlgorithmName: time-sharding-altorithm |
|
|
|
# 分片算法配置 |
|
|
|
shardingAlgorithms: |
|
|
|
# 分片算法名称,不支持大写字母和下划线,否则启动就会报错 |
|
|
|
time-sharding-altorithm: |
|
|
|
# 类型:自定义策略 |
|
|
|
type: CLASS_BASED |
|
|
|
props: |
|
|
|
# 分片策略 |
|
|
|
strategy: standard |
|
|
|
# 分片算法类 |
|
|
|
algorithmClassName: com.win.framework.datasource.sharding.TimeShardingAlgorithm |
|
|
|
datasource: |
|
|
|
dynamic: |
|
|
|
strict: true |
|
|
|