fix(config): 更新数据库连接配置以支持公钥检索

- 在数据库连接URL中添加allowPublicKeyRetrieval=true参数
- 解决MySQL连接时的公钥检索问题
This commit is contained in:
2026-05-15 15:16:13 +08:00
parent 25f758baa1
commit 710a8fa149

View File

@@ -1,7 +1,7 @@
spring:
# 数据库连接信息
datasource:
url: jdbc:p6spy:mysql://10.126.126.1:43706/mowen-blog?autoReconnect=true&useServerPreparedStmts=false&rewriteBatchedStatements=true&characterEncoding=UTF-8&useSSL=false&allowMultiQueries=true&serverTimezone=Asia/Shanghai
url: jdbc:p6spy:mysql://10.126.126.1:43706/mowen-blog?autoReconnect=true&useServerPreparedStmts=false&allowPublicKeyRetrieval=true&rewriteBatchedStatements=true&characterEncoding=UTF-8&useSSL=false&allowMultiQueries=true&serverTimezone=Asia/Shanghai
username: mowen-blog
password: junmowen
driver-class-name: com.p6spy.engine.spy.P6SpyDriver