fix: 修复开发环境数据库和Redis连接配置
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
修复内容: - 数据库URL:localhost:3306 → 127.0.0.1:33066(匹配dev-mysql容器端口) - 数据库密码:更新为容器真实密码 - Redis端口:6379 → 63379(匹配dev-redis容器端口) - Redis密码:更新为容器真实密码 - Redis数据库:0 → 8 测试结果: - ✅ 应用启动成功 - ✅ 16个martial模块API全部正常工作 - ✅ 数据库连接正常 - ✅ Redis连接正常 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -6,9 +6,9 @@ spring:
|
||||
##将docker脚本部署的redis服务映射为宿主机ip
|
||||
##生产环境推荐使用阿里云高可用redis服务并设置密码
|
||||
host: 127.0.0.1
|
||||
port: 6379
|
||||
password: 123456
|
||||
database: 0
|
||||
port: 63379
|
||||
password: RedisSecure2024MartialXyZ789ABC
|
||||
database: 8
|
||||
ssl:
|
||||
enabled: false
|
||||
##redis 集群环境配置
|
||||
@@ -16,9 +16,9 @@ spring:
|
||||
# nodes: 127.0.0.1:7001,127.0.0.1:7002,127.0.0.1:7003
|
||||
# commandTimeout: 5000
|
||||
datasource:
|
||||
url: jdbc:mysql://localhost:3306/martial_db?useSSL=false&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&serverTimezone=GMT%2B8&nullCatalogMeansCurrent=true&allowPublicKeyRetrieval=true
|
||||
url: jdbc:mysql://127.0.0.1:33066/martial_db?useSSL=false&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&serverTimezone=GMT%2B8&nullCatalogMeansCurrent=true&allowPublicKeyRetrieval=true
|
||||
username: root
|
||||
password: 123456
|
||||
password: WtcSecure901faf1ac4d32e2bPwd
|
||||
|
||||
#第三方登陆
|
||||
social:
|
||||
|
||||
Reference in New Issue
Block a user