refactor: 修改默认数据库链接配置

This commit is contained in:
2023-12-07 19:14:13 +08:00
parent 345a7e9bfa
commit 9f8e5f2d76
3 changed files with 6 additions and 47 deletions

View File

@@ -5,11 +5,11 @@ datasource:
# 数据库链接填写格式:
# jdbc:mysql://{数据库地址}:{数据库端口}/{使用的库名}?参数
# 除非你知道自己在做什么,否则不建议随意更改参数
url: "jdbc:mysql://sql.hamster3.cn:3306/Test1?serverTimezone=UTC&useUnicode=true&characterEncoding=utf8&autoReconnect=true&useSSL=false&allowPublicKeyRetrieval=true"
url: "jdbc:mysql://localhost:3306/Test1?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf8&autoReconnect=true&useSSL=false&allowPublicKeyRetrieval=true"
# 用户名
username: "Test"
username: "root"
# 密码
password: "Test123.."
password: "Root123.."
# 最小闲置链接数
# 推荐值1~3
minimum-idle: 0