|
|
@@ -39,16 +39,17 @@ spring:
|
|
|
druid:
|
|
|
# 主库数据源
|
|
|
master:
|
|
|
- url: jdbc:mysql://rds.czwh.lan:3306/fs_his?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
|
|
|
+ url: jdbc:mysql://192.168.0.229:3306/fs_his?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
|
|
|
username: czwh
|
|
|
password: Ylrz_1q2w3e4r5t6y
|
|
|
# 从库数据源
|
|
|
slave:
|
|
|
# 从数据源开关/默认关闭
|
|
|
- enabled: false
|
|
|
- url:
|
|
|
- username:
|
|
|
- password:
|
|
|
+ enabled: true
|
|
|
+ url: jdbc:mysql://192.168.0.180:3306/fs_his?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
|
|
|
+ username: czwh
|
|
|
+ password: Ylrz_1q2w3e4r5t6y
|
|
|
+ # 从库数据源
|
|
|
# 初始连接数
|
|
|
initialSize: 5
|
|
|
# 最小连接池数量
|
|
|
@@ -94,7 +95,12 @@ spring:
|
|
|
druid:
|
|
|
# 主库数据源
|
|
|
master:
|
|
|
- url: jdbc:mysql://rds.czwh.lan:3306/fs_his_sop?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
|
|
|
+ url: jdbc:mysql://192.168.0.229:3306/fs_his_sop?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
|
|
|
+ username: czwh
|
|
|
+ password: Ylrz_1q2w3e4r5t6y
|
|
|
+ # 主库数据源
|
|
|
+ read:
|
|
|
+ url: jdbc:mysql://192.168.0.180:3306/fs_his_sop?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
|
|
|
username: czwh
|
|
|
password: Ylrz_1q2w3e4r5t6y
|
|
|
# 初始连接数
|