多数据源配置

This commit is contained in:
ryoeiken 2020-11-25 10:31:14 +08:00
parent a35a2ff6f2
commit 82fe6d5c34
2 changed files with 8 additions and 8 deletions

View File

@ -12,10 +12,10 @@ spring:
# 从库数据源
slave:
# 从数据源开关/默认关闭
enabled: false
url:
username:
password:
enabled: true
url: jdbc:mysql://120.77.157.122:3306/gch?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
username: gch
password: phJAccAEKaswNfK6
# 初始连接数
initialSize: 5
# 最小连接池数量

View File

@ -12,10 +12,10 @@ spring:
# 从库数据源
slave:
# 从数据源开关/默认关闭
enabled: false
url:
username:
password:
enabled: true
url: jdbc:mysql://120.77.157.122:3306/gch?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
username: gch
password: phJAccAEKaswNfK6
# 初始连接数
initialSize: 5
# 最小连接池数量