From eef234389901ff10b910acf5390d292bf60c833f Mon Sep 17 00:00:00 2001 From: lizhengwei Date: Thu, 13 Nov 2025 15:43:48 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=AF=E5=8A=A8=E9=97=AE=E9=A2=98=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/application-local.yml | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/ruoyi-site/ruoyi-h5/src/main/resources/application-local.yml b/ruoyi-site/ruoyi-h5/src/main/resources/application-local.yml index a881c848a..145b66c65 100644 --- a/ruoyi-site/ruoyi-h5/src/main/resources/application-local.yml +++ b/ruoyi-site/ruoyi-h5/src/main/resources/application-local.yml @@ -25,7 +25,7 @@ spring: driverClassName: com.mysql.cj.jdbc.Driver # jdbc 所有参数配置参考 https://lionli.blog.csdn.net/article/details/122018562 # rewriteBatchedStatements=true 批处理优化 大幅提升批量插入更新删除性能(对数据库有性能损耗 使用批量操作应考虑性能问题) - url: jdbc:mysql://mysql:3306/mall-h5-core?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true + url: jdbc:mysql://127.0.0.1:3306/h5?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true username: root password: root # 从库数据源 @@ -33,9 +33,9 @@ spring: lazy: true type: ${spring.datasource.type} driverClassName: com.mysql.cj.jdbc.Driver - url: jdbc:mysql://mysql:3306/mall-h5-core?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true - username: - password: + url: jdbc:mysql://127.0.0.1:3306/h5?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true + username: root + password: root hikari: # 最大连接池数量 maxPoolSize: 20 @@ -56,7 +56,7 @@ spring: # Redis数据库索引(默认为0) database: 0 # Redis服务器地址 - host: redis + host: 127.0.0.1 # Redis服务器连接端口 port: 6379 # Redis服务器连接密码(默认为空) @@ -73,7 +73,10 @@ spring: max-idle: 10 # 连接池中的最小空闲连接 min-idle: 0 - + mongodb: + database: h5 + host: 127.0.0.1 + port: 27017 springdoc: api-docs: @@ -99,7 +102,7 @@ dubbo: name: ${spring.application.name} # 注册中心配置 registry: - address: nacos://nacos-registry:8848 + address: nacos://127.0.0.1:8848 group: DUBBO_GROUP parameters: namespace: c5c00044-93e6-4e66-8060-3f39aa7ab82b