From 9a2b1251fc48874b76d3b02dbfc306698325dfeb Mon Sep 17 00:00:00 2001 From: whycxzp <glperry@163.com> Date: 星期三, 10 一月 2024 10:53:38 +0800 Subject: [PATCH] 更新 --- src/main/resources/config/application.yml | 17 ++++++++++------- 1 files changed, 10 insertions(+), 7 deletions(-) diff --git a/src/main/resources/config/application.yml b/src/main/resources/config/application.yml index 062492b..aca204b 100644 --- a/src/main/resources/config/application.yml +++ b/src/main/resources/config/application.yml @@ -1,15 +1,15 @@ #鏈嶅姟绔彛鍙� server: port: 8090 -# servlet: -# context-path: /motor + servlet: + context-path: /ct #鏁版嵁搴� spring: datasource: type: com.alibaba.druid.pool.DruidDataSource driver-class-name: com.mysql.cj.jdbc.Driver - url: jdbc:mysql://localhost:3360/db_3.5mw_web?characterEncoding=utf8&serverTimezone=Asia/Shanghai&allowMultiQueries=true + url: jdbc:mysql://localhost:3360/db_cluster_test?characterEncoding=utf8&serverTimezone=Asia/Shanghai&allowMultiQueries=true&useSSL=false # url: jdbc:mysql://192.168.10.221:3360/db_3.5mw_web?characterEncoding=utf8&serverTimezone=Asia/Shanghai&allowMultiQueries=true # url: jdbc:mysql://192.168.10.221:3360?characterEncoding=utf8&serverTimezone=Asia/Shanghai&allowMultiQueries=true # url: jdbc:mysql://192.168.10.222:3360/db_user?characterEncoding=utf8&serverTimezone=Asia/Shanghai&allowMultiQueries=true @@ -58,12 +58,11 @@ # base-package: com.whyc.controller knife: enable: true -# enable: fase redis: - #妯″紡 single/sentinel/cluster + #妯″紡 single/sentinel/cluster/master-slave model: single timeout: 3000 - global-session-timeout: 360000 + global-session-timeout: 3000 password: #杩炴帴姹犻厤缃� pool: @@ -86,11 +85,15 @@ #闆嗙兢閰嶇疆 cluster: scan-interval: 1000 - nodes: redis://localhost:6379 + nodes: redis://localhost:6379,redis://localhost:6380 read-mode: SLAVE retry-attempts: 3 failed-attempts: 3 slave-connection-pool-size: 64 master-connection-pool-size: 64 retry-interval: 1500 + #闆嗙兢閰嶇疆 + master-slave: + scan-interval: 1000 + nodes: redis://localhost:6379,redis://localhost:6380 -- Gitblit v1.9.1