更改数据库配置

This commit is contained in:
Auora
2025-10-21 11:12:42 +08:00
parent cede47f342
commit 2c7456531d
2 changed files with 6 additions and 6 deletions

View File

@@ -6,9 +6,9 @@ spring:
druid:
# 主库数据源
master:
url: jdbc:postgresql://localhost:5432/openhis?currentSchema=public&characterEncoding=UTF-8&client_encoding=UTF-8
username: postgres
password: root
url: jdbc:postgresql://192.168.110.252:15432/postgresql?currentSchema=public&characterEncoding=UTF-8&client_encoding=UTF-8
username: postgresql
password: Jchl1528
# 从库数据源
slave:
# 从数据源开关/默认关闭
@@ -62,13 +62,13 @@ spring:
# redis 配置
redis:
# 地址
host: 172.0.0.0
host: 192.168.110.252
# 端口默认为6379
port: 6379
# 数据库索引
database: 1
# 密码
password: redis
password: Jchl1528
# 连接超时时间
timeout: 10s
lettuce: