From 3f615e150ec0332f64fa7d9bcdc7f63940c9a8d9 Mon Sep 17 00:00:00 2001 From: zzy Date: Wed, 22 Apr 2026 21:08:48 +0800 Subject: [PATCH] =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/application-dev.yaml | 17 ++++++----------- .../src/main/resources/application-local.yaml | 15 +++++---------- 2 files changed, 11 insertions(+), 21 deletions(-) diff --git a/fjrcloud-server/src/main/resources/application-dev.yaml b/fjrcloud-server/src/main/resources/application-dev.yaml index 5cd4e9c..4867e02 100644 --- a/fjrcloud-server/src/main/resources/application-dev.yaml +++ b/fjrcloud-server/src/main/resources/application-dev.yaml @@ -1,5 +1,5 @@ server: - port: 48080 + port: 48081 --- #################### 数据库相关配置 #################### @@ -47,21 +47,16 @@ spring: primary: master datasource: master: - url: jdbc:mysql://127.0.0.1:3306/ruoyi-vue-pro?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true&rewriteBatchedStatements=true # MySQL Connector/J 8.X 连接的示例 + url: jdbc:mysql://gz-cdb-p5shgpql.sql.tencentcdb.com:25746/community?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true&rewriteBatchedStatements=true # MySQL Connector/J 8.X 连接的示例 username: root - password: 123456 - slave: # 模拟从库,可根据自己需要修改 # 模拟从库,可根据自己需要修改 - lazy: true # 开启懒加载,保证启动速度 - url: jdbc:mysql://127.0.0.1:3306/ruoyi-vue-pro?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true&rewriteBatchedStatements=true # MySQL Connector/J 8.X 连接的示例 - username: root - password: 123456 + password: HappY@2025$$!!test # Redis 配置。Redisson 默认的配置足够使用,一般不需要进行调优 redis: - host: 127.0.0.1 # 地址 + host: 10.1.8.12 # 地址 port: 6379 # 端口 - database: 1 # 数据库索引 -# password: 123456 # 密码,建议生产环境开启 + database: 0 # 数据库索引 + password: happy001 # 密码,建议生产环境开启 --- #################### 定时任务相关配置 #################### diff --git a/fjrcloud-server/src/main/resources/application-local.yaml b/fjrcloud-server/src/main/resources/application-local.yaml index 659897a..86e3c26 100644 --- a/fjrcloud-server/src/main/resources/application-local.yaml +++ b/fjrcloud-server/src/main/resources/application-local.yaml @@ -1,5 +1,5 @@ server: - port: 48080 + port: 48081 --- #################### 数据库相关配置 #################### spring: @@ -48,21 +48,16 @@ spring: primary: master datasource: master: - url: jdbc:mysql://127.0.0.1:3306/workspace?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true&rewriteBatchedStatements=true # MySQL Connector/J 8.X 连接的示例 + url: jdbc:mysql://gz-cdb-p5shgpql.sql.tencentcdb.com:25746/community?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true&rewriteBatchedStatements=true # MySQL Connector/J 8.X 连接的示例 username: root - password: 123456 - slave: # 模拟从库,可根据自己需要修改 - lazy: true # 开启懒加载,保证启动速度 - url: jdbc:mysql://127.0.0.1:3306/workspace?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&rewriteBatchedStatements=true&nullCatalogMeansCurrent=true - username: root - password: 123456 + password: HappY@2025$$!!test # Redis 配置。Redisson 默认的配置足够使用,一般不需要进行调优 redis: host: 127.0.0.1 # 地址 port: 6379 # 端口 - database: 0 # 数据库索引 -# password: dev # 密码,建议生产环境开启 + database: 1 # 数据库索引 +# password: 123456 # 密码,建议生产环境开启 --- #################### 定时任务相关配置 ####################