增加 Redis 分布式锁

This commit is contained in:
YunaiV
2021-02-24 01:35:41 +08:00
parent 94dfe41153
commit 53db9de93d
13 changed files with 109 additions and 6 deletions

View File

@ -81,6 +81,13 @@ apollo:
username: ${spring.datasource.username}
password: ${spring.datasource.password}
--- #################### 服务保障相关配置 ####################
# Lock4j 配置项
lock4j:
acquire-timeout: 3000 # 获取分布式锁超时时间,默认为 3000 毫秒
expire: 30000 # 分布式锁的超时时间,默认为 30 毫秒
--- #################### 监控相关配置 ####################
# Actuator 监控端点的配置项