mirror of
https://gitee.com/dromara/RuoYi-Cloud-Plus.git
synced 2026-01-13 07:05:11 +08:00
update 优化 将dubbo redis集群配置移动到common配置文件里便于修改
This commit is contained in:
@@ -20,18 +20,14 @@ dubbo:
|
||||
parameters:
|
||||
namespace: ${spring.profiles.active}
|
||||
metadata-report:
|
||||
address: redis://${spring.data.redis.host}:${spring.data.redis.port}
|
||||
address: redis://${spring.data.redis.host:localhost}:${spring.data.redis.port:6379}
|
||||
group: DUBBO_GROUP
|
||||
username: dubbo
|
||||
password: ${spring.data.redis.password}
|
||||
# 集群开关
|
||||
cluster: false
|
||||
parameters:
|
||||
namespace: ${spring.profiles.active}
|
||||
database: ${spring.data.redis.database}
|
||||
timeout: ${spring.data.redis.timeout}
|
||||
# 集群地址 cluster 为 true 生效
|
||||
backup: 127.0.0.1:6379,127.0.0.1:6381
|
||||
# 消费者相关配置
|
||||
consumer:
|
||||
# 结果缓存(LRU算法)
|
||||
|
||||
@@ -32,6 +32,13 @@ dubbo:
|
||||
consumer:
|
||||
# 超时时间
|
||||
timeout: 3000
|
||||
metadata-report:
|
||||
# Redis集群开关
|
||||
cluster: false
|
||||
parameters:
|
||||
# 集群地址 cluster 为 true 生效
|
||||
# 集群把所有Redis集群节点写到这里就行了
|
||||
backup: 127.0.0.1:6379,127.0.0.1:6381
|
||||
# 自定义配置
|
||||
custom:
|
||||
# 全局请求log
|
||||
|
||||
Reference in New Issue
Block a user