config(db): 更新数据库连接配置

- 在数据库连接URL中添加allowPublicKeyRetrieval=true参数
- 解决MySQL 8.0版本的公钥检索问题
This commit is contained in:
msgroup
2025-12-24 14:25:58 +08:00
committed by mingsoft
parent 4fa11bbaec
commit d3d8b52573

View File

@@ -1,6 +1,6 @@
spring:
datasource:
url: jdbc:mysql://localhost:3306/mcms?useUnicode=true&serverTimezone=Asia/Shanghai&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&autoReconnect=true&allowMultiQueries=true&useSSL=false
url: jdbc:mysql://localhost:3306/mcms?useUnicode=true&serverTimezone=Asia/Shanghai&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&autoReconnect=true&allowMultiQueries=true&useSSL=false&allowPublicKeyRetrieval=true
username: root
password: root
filters: wall,mergeStat