Browse Source

修改bug。

master
刘忱 2 years ago
parent
commit
e003a8491b
  1. 11
      win-server/src/main/resources/application-prod.yaml
  2. 11
      win-server/src/main/resources/application-test.yaml

11
win-server/src/main/resources/application-prod.yaml

@ -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

11
win-server/src/main/resources/application-test.yaml

@ -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

Loading…
Cancel
Save