From 212dd4f1da5636be2dd5f6fed6bc75d6750a81b5 Mon Sep 17 00:00:00 2001 From: yang <2119157836@qq.com> Date: Wed, 5 Mar 2025 18:34:13 +0800 Subject: [PATCH] =?UTF-8?q?feat(memberCenter):=20=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/application-dev.yml | 66 ++----------------- 1 file changed, 4 insertions(+), 62 deletions(-) diff --git a/mcwl-admin/src/main/resources/application-dev.yml b/mcwl-admin/src/main/resources/application-dev.yml index 469ea3b..c7c18bb 100644 --- a/mcwl-admin/src/main/resources/application-dev.yml +++ b/mcwl-admin/src/main/resources/application-dev.yml @@ -87,75 +87,17 @@ spring: # 密码 password: MuYu_Cloud@Redis # 连接超时时间 - timeout: 30s + timeout: 6000ms lettuce: pool: # 连接池中的最小空闲连接 - min-idle: 0 + min-idle: 5 # 连接池中的最大空闲连接 - max-idle: 8 + max-idle: 10 # 连接池的最大数据库连接数 - max-active: 8 + max-active: 1000 # #连接池最大阻塞等待时间(使用负值表示没有限制) max-wait: -1ms # 默认使用的数据库索引 - - # 连接超时配置 - connect-timeout: 5000ms # 连接建立超时时间 - timeout: 10000ms # 命令执行超时时间 - - # SSL配置(如果需要) - ssl: - enabled: false # 是否启用SSL连接 - # bundle-certs: true # 使用自定义证书 - # keystore-password: secret # 证书密码 - - # Lettuce客户端配置(推荐使用Lettuce而非Jedis) - lettuce: - shutdown-timeout: 5000ms # 关闭超时时间 - - # 客户端配置选项 - client-options: - auto-reconnect: true # 自动重连 - disconnect-timeout: 5000ms # 断开连接超时 - cancel-timeout: 3000ms # 取消命令超时 - keep-alive: true # 开启TCP Keep-Alive - publish-on-scheduler: true # 在调度器上发布(提高性能) - - # TCP连接选项 - client-resources: - io-thread-pool-size: 8 # IO线程池大小 - computation-thread-pool-size: 8 # 计算线程池大小 - - # 集群配置(如果使用Redis集群) -# cluster: -# refresh: -# period: 20s # 拓扑刷新周期 -# adaptive: true # 自适应刷新 - - # 连接池配置 - pool: - max-active: 32 # 最大活跃连接数(根据并发需求调整) - max-idle: 16 # 最大空闲连接数 - min-idle: 8 # 最小空闲连接数 - max-wait: 3000ms # 最大等待时间 - time-between-eviction-runs: 120000ms # 空闲连接检查周期 - test-while-idle: true # 在空闲时检测连接是否有效 - test-on-borrow: true # 在借用连接时检测连接是否有效 - test-on-return: false # 在归还连接时检测连接是否有效 - - # 哨兵配置(如果使用Redis Sentinel) - sentinel: - enabled: false # 是否启用哨兵模式 - # master: mymaster # 主节点名称 - # nodes: host1:26379,host2:26379 # 哨兵节点列表 - - # 集群配置(如果使用Redis Cluster) -# cluster: -# enabled: false # 是否启用集群模式 -# # nodes: host1:6379,host2:6379 # 集群节点列表 -# max-redirects: 3 # 最大重定向次数 - - #ai配置 ai: dashscope: