init DB and Redis

pull/1121/head
梁宇奇 2025-03-12 17:45:39 +08:00
parent 525ebf92d2
commit f7a3e64f7a
2 changed files with 4 additions and 4 deletions

View File

@ -6,9 +6,9 @@ spring:
druid:
# 主库数据源
master:
url: jdbc:mysql://localhost:3306/ry-vue?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
url: jdbc:mysql://101.34.251.164:3377/ry-vue?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
username: root
password: password
password: hongtu56@Mysql0212
# 从库数据源
slave:
# 从数据源开关/默认关闭

View File

@ -68,13 +68,13 @@ spring:
# redis 配置
redis:
# 地址
host: localhost
host: 101.34.251.164
# 端口默认为6379
port: 6379
# 数据库索引
database: 0
# 密码
password:
password: hongtu56@Redis0212
# 连接超时时间
timeout: 10s
lettuce: