From a55963fc2e009c9559c8a6583d6253cfb681dbcd Mon Sep 17 00:00:00 2001 From: huliyong <2783385703@qq.com> Date: Wed, 1 Oct 2025 23:52:08 +0800 Subject: [PATCH] 1 --- .../src/main/resources/application-dev.yml | 20 +++++++++++++++----- .../ruoyi-admin/src/main/resources/application.yml | 2 +- 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/java-api/ruoyi-admin/src/main/resources/application-dev.yml b/java-api/ruoyi-admin/src/main/resources/application-dev.yml index 36b43f9..15165d0 100644 --- a/java-api/ruoyi-admin/src/main/resources/application-dev.yml +++ b/java-api/ruoyi-admin/src/main/resources/application-dev.yml @@ -55,9 +55,11 @@ spring: # jdbc 所有参数配置参考 https://lionli.blog.csdn.net/article/details/122018562 # rewriteBatchedStatements=true 批处理优化 大幅提升批量插入更新删除性能(对数据库有性能损耗 使用批量操作应考虑性能问题) # url: jdbc:mysql://175.178.45.24:3306/hanhai-official-website?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true - url: jdbc:mysql://localhost:3306/hanhai-official-website?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true +# url: jdbc:mysql://localhost:3306/hanhai-official-website?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true + url: jdbc:mysql://42.194.239.145:3306/hanhai-official-website?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true username: root - password: 123456 +# password: 123456 + password: I5+sHYZQ # password: enu&g016 # 从库数据源 slave: @@ -107,13 +109,13 @@ spring.data: redis: # 地址 # host: 192.168.1.173 - host: 175.178.45.24 + host: 42.194.239.145 # 端口,默认为6379 port: 6379 # 数据库索引 - database: 11 + database: 13 # redis 密码必须配置 - password: hhlm@1688520 + password: 'lzx.123456' # 连接超时时间 timeout: 10s # 是否开启ssl @@ -272,3 +274,11 @@ justauth: client-id: 10**********6 client-secret: 1f7d08**********5b7**********29e redirect-uri: ${justauth.address}/social-callback?source=gitlab + + + +server: + port: 8000 + servlet: + # 应用的访问路径 + context-path: / \ No newline at end of file diff --git a/java-api/ruoyi-admin/src/main/resources/application.yml b/java-api/ruoyi-admin/src/main/resources/application.yml index 97b8d8c..6ad4632 100644 --- a/java-api/ruoyi-admin/src/main/resources/application.yml +++ b/java-api/ruoyi-admin/src/main/resources/application.yml @@ -25,7 +25,7 @@ server: port: 8000 servlet: # 应用的访问路径 - context-path: /official + context-path: / # undertow 配置 undertow: # HTTP post内容的最大大小。当值为-1时,默认值为大小是无限的