From a81da88bc4d2eb91a69b7e4b8baa68d43dde3bf9 Mon Sep 17 00:00:00 2001 From: HuangLei Date: Wed, 18 Jun 2025 14:49:11 +0800 Subject: [PATCH] =?UTF-8?q?config(redis):=20=E6=9B=B4=E6=96=B0=20Redis=20?= =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修改了 Redis 服务器地址和端口 - 添加了 Redis 密码配置 -增加了连接超时时间和 SSL 配置选项 --- yudao-server/src/main/resources/application-dev.yaml | 10 +++++++--- yudao-server/src/main/resources/application-local.yaml | 4 ++++ 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/yudao-server/src/main/resources/application-dev.yaml b/yudao-server/src/main/resources/application-dev.yaml index 8cc671fdf9..2c97185f76 100644 --- a/yudao-server/src/main/resources/application-dev.yaml +++ b/yudao-server/src/main/resources/application-dev.yaml @@ -56,10 +56,14 @@ spring: # Redis 配置。Redisson 默认的配置足够使用,一般不需要进行调优 data: redis: - host: 400-infra.server.iocoder.cn # 地址 - port: 6379 # 端口 + host: 192.168.201.228 # 地址 + port: 31314 # 端口 database: 1 # 数据库索引 -# password: 123456 # 密码,建议生产环境开启 + password: redis.123456 # 密码,建议生产环境开启 + # 连接超时时间 + timeout: 10s + # 是否开启ssl + ssl.enabled: false --- #################### 定时任务相关配置 #################### diff --git a/yudao-server/src/main/resources/application-local.yaml b/yudao-server/src/main/resources/application-local.yaml index 950d4d56bf..e5a0b65873 100644 --- a/yudao-server/src/main/resources/application-local.yaml +++ b/yudao-server/src/main/resources/application-local.yaml @@ -84,6 +84,10 @@ spring: port: 31314 # 端口 database: 2 # 数据库索引 password: redis.123456 # 密码,建议生产环境开启 + # 连接超时时间 + timeout: 10s + # 是否开启ssl + ssl.enabled: false --- #################### 定时任务相关配置 ####################