|
|
@ -47,22 +47,22 @@ spring: |
|
|
|
master: |
|
|
|
type: com.alibaba.druid.pool.DruidDataSource |
|
|
|
driverClassName: com.mysql.cj.jdbc.Driver |
|
|
|
url: jdbc:mysql://localhost:3306/ccwin?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 |
|
|
|
username: ccwin |
|
|
|
url: jdbc:mysql://localhost:3306/qad?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 |
|
|
|
username: root |
|
|
|
password: Microdoft@2021 |
|
|
|
# 读数据源 |
|
|
|
slave0: |
|
|
|
type: com.alibaba.druid.pool.DruidDataSource |
|
|
|
driverClassName: com.mysql.cj.jdbc.Driver |
|
|
|
url: jdbc:mysql://localhost:3306/ccwin?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 |
|
|
|
username: ccwin |
|
|
|
url: jdbc:mysql://localhost:3306/qad?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 |
|
|
|
username: root |
|
|
|
password: Microdoft@2021 |
|
|
|
# 读数据源 |
|
|
|
slave1: |
|
|
|
type: com.alibaba.druid.pool.DruidDataSource |
|
|
|
driverClassName: com.mysql.cj.jdbc.Driver |
|
|
|
url: jdbc:mysql://localhost:3306/ccwin?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 |
|
|
|
username: ccwin |
|
|
|
url: jdbc:mysql://localhost:3306/qad?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 |
|
|
|
username: root |
|
|
|
password: Microdoft@2021 |
|
|
|
# 读写分离类型,如: Static,Dynamic |
|
|
|
rules: |
|
|
|