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