From 6293d2b460bd17eee8b078f5a53ee4b2a0eea88e Mon Sep 17 00:00:00 2001
From: yanzhaofeige <yanzhaofeige@qq.com>
Date: Mon, 30 Sep 2024 11:15:40 +0800
Subject: [PATCH] init

---
 cpzidc-admin/src/main/resources/application-druid.yml |   30 ++++++++++++++++++++++++++----
 1 files changed, 26 insertions(+), 4 deletions(-)

diff --git a/cpzidc-admin/src/main/resources/application-druid.yml b/cpzidc-admin/src/main/resources/application-druid.yml
index 40decb5..34b11d0 100644
--- a/cpzidc-admin/src/main/resources/application-druid.yml
+++ b/cpzidc-admin/src/main/resources/application-druid.yml
@@ -6,9 +6,9 @@
         druid:
             # 主库数据源
             master:
-                url: jdbc:mysql://localhost:3306/cpz-idc?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
-                username: root
-                password: password
+                url: jdbc:mysql://rm-2ze76o0e1v97mb1689o.mysql.rds.aliyuncs.com:23306/db_cpz_idc?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
+                username: laodai_20220711
+                password: 'odc#cwei288^49'
             # 从库数据源
             slave:
                 # 从数据源开关/默认关闭
@@ -58,4 +58,26 @@
                     merge-sql: true
                 wall:
                     config:
-                        multi-statement-allow: true
\ No newline at end of file
+                        multi-statement-allow: true
+    # redis 配置
+    redis:
+        # 地址
+        host: 116.204.121.181
+        # 端口,默认为6379
+        port: 26379
+        # 数据库索引
+        database: 15
+        # 密码
+        password: JriL5qZ!2uO456$xzh
+        # 连接超时时间
+        timeout: 10s
+        lettuce:
+            pool:
+                # 连接池中的最小空闲连接
+                min-idle: 1
+                # 连接池中的最大空闲连接
+                max-idle: 8
+                # 连接池的最大数据库连接数
+                max-active: 8
+                # #连接池最大阻塞等待时间(使用负值表示没有限制)
+                max-wait: -1ms
\ No newline at end of file

--
Gitblit v1.9.3