chore: 修改 local 配置,使用与 prod 一致的 MySQL 和 Redis 配置

将本地数据库和 Redis 从 localhost 改为远程服务器 101.200.208.45,
包括密码、连接池参数等与生产环境保持一致,确保本地开发与生产环境一致。

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-05-08 23:55:38 +08:00
parent f0074321c4
commit 507d1ebdab
@@ -5,36 +5,38 @@ server:
port: 19089 port: 19089
spring: spring:
# 数据库配置 - 本地MySQL # 数据库配置 - 与prod一致
datasource: datasource:
driver-class-name: com.mysql.cj.jdbc.Driver driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://localhost:3306/emotion_museum?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai&useSSL=false&allowPublicKeyRetrieval=true url: jdbc:mysql://101.200.208.45:3306/emotion_museum?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai&useSSL=false&allowPublicKeyRetrieval=true
username: root username: root
password: 123456 password: EmotionMuseum2025*#
hikari: hikari:
minimum-idle: 5 minimum-idle: 10
maximum-pool-size: 20 maximum-pool-size: 50
auto-commit: true auto-commit: true
idle-timeout: 30000 idle-timeout: 600000
pool-name: EmotionHikariCP-Local pool-name: EmotionHikariCP-Local
max-lifetime: 1800000 max-lifetime: 1800000
connection-timeout: 30000 connection-timeout: 30000
validation-timeout: 3000 validation-timeout: 5000
leak-detection-threshold: 60000 leak-detection-threshold: 60000
# Redis配置 - 本地Redis # Redis配置 - 与prod一致
redis: redis:
host: localhost host: 101.200.208.45
port: 6379 port: 6379
timeout: 3000ms timeout: 5000ms
database: 0 database: 0
password: EmotionMuseum2025*#
lettuce: lettuce:
pool: pool:
max-active: 8 max-active: 20
max-wait: -1ms max-wait: -1ms
max-idle: 8 max-idle: 10
min-idle: 0 min-idle: 5
time-between-eviction-runs: 30s time-between-eviction-runs: 30s
client-name: emotion-museum-client
# 日志配置 - 本地开发详细日志 # 日志配置 - 本地开发详细日志
logging: logging: