数据库连接修改

pull/1109/head
nkty 2025-11-12 15:53:47 +08:00
parent d5bc3d02ff
commit c69fb17407
1 changed files with 7 additions and 3 deletions

View File

@ -6,9 +6,13 @@ spring:
druid:
# 主库数据源
master:
url: jdbc:mysql://localhost:3306/ry-server?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
username: root
password: dindcool
url: jdbc:mysql://j.zxing.ltd:3306/ry-server?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
username: tsyy
password: Dindcool123!
# url: jdbc:mysql://localhost:3306/ry-server?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
# username: tsyy
# password: Dindcool123!
# 从库数据源
slave:
# 从数据源开关/默认关闭