From 71bc4b45dcf34f6464c8d106aed848d6025c80ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E4=B9=85=E5=93=A5?= <787952492@qq.com> Date: Thu, 9 Jun 2022 09:43:11 +0800 Subject: [PATCH] cj --- .../src/main/resources/application-prod.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/yudao-server/src/main/resources/application-prod.yaml b/yudao-server/src/main/resources/application-prod.yaml index 2b618477..56476843 100644 --- a/yudao-server/src/main/resources/application-prod.yaml +++ b/yudao-server/src/main/resources/application-prod.yaml @@ -46,20 +46,20 @@ spring: datasource: master: name: ruoyi-vue-pro - url: jdbc:p6spy:mysql://127.0.0.1:3306/${spring.datasource.dynamic.datasource.master.name}?useSSL=false&allowPublicKeyRetrieval=true&useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&autoReconnect=true - driver-class-name: com.p6spy.engine.spy.P6SpyDriver + url: jdbc:mysql://127.0.0.1:3306/${spring.datasource.dynamic.datasource.master.name}?useSSL=false&allowPublicKeyRetrieval=true&useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&autoReconnect=true + driver-class-name: com.mysql.cj.jdbc.Driver username: root password: 4730da9b slave: # 模拟从库,可根据自己需要修改 name: ruoyi-vue-pro - url: jdbc:p6spy:mysql://127.0.0.1:3306/${spring.datasource.dynamic.datasource.slave.name}?useSSL=false&allowPublicKeyRetrieval=true&useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&autoReconnect=true - driver-class-name: com. + url: jdbc:mysql://127.0.0.1:3306/${spring.datasource.dynamic.datasource.slave.name}?useSSL=false&allowPublicKeyRetrieval=true&useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&autoReconnect=true + driver-class-name: com.mysql.cj.jdbc.Driver username: root password: 4730da9b bxg: # 农场数据源 name: bxg - url: jdbc:p6spy:mysql://127.0.0.1:3306/${spring.datasource.dynamic.datasource.bxg.name}?useSSL=false&allowPublicKeyRetrieval=true&useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&autoReconnect=true - driver-class-name: com.p6spy.engine.spy.P6SpyDriver + url: jdbc:mysql://127.0.0.1:3306/${spring.datasource.dynamic.datasource.bxg.name}?useSSL=false&allowPublicKeyRetrieval=true&useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&autoReconnect=true + driver-class-name: com.mysql.cj.jdbc.Driver username: root password: 4730da9b # farm: # 农场数据源