|
|
@ -4,11 +4,23 @@ spring:
|
|
|
|
type: com.alibaba.druid.pool.DruidDataSource
|
|
|
|
type: com.alibaba.druid.pool.DruidDataSource
|
|
|
|
driverClassName: com.mysql.cj.jdbc.Driver
|
|
|
|
driverClassName: com.mysql.cj.jdbc.Driver
|
|
|
|
druid:
|
|
|
|
druid:
|
|
|
|
# 主库数据源
|
|
|
|
# 主库数据源 远程服务服务器
|
|
|
|
master:
|
|
|
|
master:
|
|
|
|
url: jdbc:mysql://20.1.0.158:3306/tc_zz?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
|
|
|
|
url: jdbc:mysql://20.1.0.158:3306/tc_zz?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
|
|
|
|
username: root
|
|
|
|
username: root
|
|
|
|
password: root
|
|
|
|
password: root
|
|
|
|
|
|
|
|
#公司远程
|
|
|
|
|
|
|
|
# url: jdbc:mysql://39.101.188.84:3307/tc_zz?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
|
|
|
|
|
|
|
|
# username: root
|
|
|
|
|
|
|
|
# password: Admin123@
|
|
|
|
|
|
|
|
##公司本地
|
|
|
|
|
|
|
|
# url: jdbc:mysql://localhost:3307/tc_zz?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
|
|
|
|
|
|
|
|
# username: root
|
|
|
|
|
|
|
|
# password: Admin123@
|
|
|
|
|
|
|
|
#本地
|
|
|
|
|
|
|
|
# url: jdbc:mysql://localhost:3306/tc_zz?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
|
|
|
|
|
|
|
|
# username: root
|
|
|
|
|
|
|
|
# password: adminadmin
|
|
|
|
# 从库数据源
|
|
|
|
# 从库数据源
|
|
|
|
slave:
|
|
|
|
slave:
|
|
|
|
# 从数据源开关/默认关闭
|
|
|
|
# 从数据源开关/默认关闭
|
|
|
|