|
@ -22,21 +22,21 @@ 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://10.230.41.31:3306/sfms?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 |
|
|
url: jdbc:mysql://10.230.41.31:3306/tianhe?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 |
|
|
username: root |
|
|
username: root |
|
|
password: Microsoft@2021 |
|
|
password: Microsoft@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://10.230.41.31:3306/sfms?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 |
|
|
url: jdbc:mysql://10.230.41.31:3306/tianhe?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 |
|
|
username: root |
|
|
username: root |
|
|
password: Microsoft@2021 |
|
|
password: Microsoft@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://10.230.41.31:3306/sfms?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 |
|
|
url: jdbc:mysql://10.230.41.31:3306/tianhe?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 |
|
|
username: root |
|
|
username: root |
|
|
password: Microsoft@2021 |
|
|
password: Microsoft@2021 |
|
|
# 读写分离类型,如: Static,Dynamic |
|
|
# 读写分离类型,如: Static,Dynamic |
|
|