config(server): 更新开发环境配置以匹配HealthLink HIS系统

- 添加Flyway数据库迁移配置并启用相关功能
- 修改PostgreSQL数据库连接参数,更新schema名称为healthlink_his
- 更改Druid监控控制台登录用户名为healthlink-his
- 修复Redis配置路径,将redis配置移至spring.data.redis下
- 更新应用上下文路径为/healthlink-his
- 移除关于Spring Boot 4.x的注释说明
This commit is contained in:
2026-06-22 10:18:38 +08:00
parent d2d47c2b04
commit 0cd119c0a7
2 changed files with 47 additions and 28 deletions

View File

@@ -1,12 +1,20 @@
# 数据源配置
spring:
# Flyway 数据库迁移配置
flyway:
enabled: true
baseline-on-migrate: true
baseline-version: 0
locations: classpath:db/migration
out-of-order: false
validate-on-migrate: true
datasource:
type: com.alibaba.druid.pool.DruidDataSource
driverClassName: org.postgresql.Driver
druid:
# 主库数据源
master:
url: jdbc:postgresql://192.168.110.252:15432/postgresql?currentSchema=hisdev&characterEncoding=UTF-8&client_encoding=UTF-8
url: jdbc:postgresql://192.168.110.252:15432/postgresql?currentSchema=healthlink_his&characterEncoding=UTF-8&client_encoding=UTF-8
username: postgresql
password: Jchl1528 # 请替换为实际的数据库密码
# 从库数据源
@@ -49,7 +57,7 @@ spring:
allow:
url-pattern: /druid/*
# 控制台管理用户名和密码
login-username: openhis
login-username: healthlink-his
login-password: 123456
filter:
stat:
@@ -61,7 +69,7 @@ spring:
wall:
config:
multi-statement-allow: true
# redis 配置 (Spring Boot 4.x 使用 spring.data.redis)
# redis 配置
data:
redis:
# 地址
@@ -91,4 +99,5 @@ server:
port: 18080
servlet:
# 应用的访问路径
context-path: /openhis
context-path: /healthlink-his

View File

@@ -1,12 +1,20 @@
# 数据源配置
spring:
# Flyway 数据库迁移配置
flyway:
enabled: true
baseline-on-migrate: true
baseline-version: 0
locations: classpath:db/migration
out-of-order: false
validate-on-migrate: true
datasource:
type: com.alibaba.druid.pool.DruidDataSource
driverClassName: org.postgresql.Driver
druid:
# 主库数据源
master:
url: jdbc:postgresql://192.168.110.252:15432/postgresql?currentSchema=hisdev&characterEncoding=UTF-8&client_encoding=UTF-8
url: jdbc:postgresql://192.168.110.252:15432/postgresql?currentSchema=healthlink_his&characterEncoding=UTF-8&client_encoding=UTF-8
username: postgresql
password: Jchl1528 # 请替换为实际的数据库密码
# 从库数据源
@@ -49,7 +57,7 @@ spring:
allow:
url-pattern: /druid/*
# 控制台管理用户名和密码
login-username: openhis
login-username: healthlink-his
login-password: 123456
filter:
stat:
@@ -62,27 +70,28 @@ spring:
config:
multi-statement-allow: true
# redis 配置
redis:
# 地址
host: 192.168.110.252
# 端口默认为6379
port: 6379
# 数据库索引
database: 1
# 密码
password: Jchl1528
# 连接超时时间
timeout: 10s
lettuce:
pool:
# 连接池中的最小空闲连接
min-idle: 0
# 连接池中的最大空闲连接
max-idle: 8
# 连接池的最大数据库连接数
max-active: 8
# #连接池最大阻塞等待时间(使用负值表示没有限制)
max-wait: -1ms
data:
redis:
# 地址
host: 192.168.110.252
# 端口,默认为6379
port: 6379
# 数据库索引
database: 1
# 密码
password: Jchl1528
# 连接超时时间
timeout: 10s
lettuce:
pool:
# 连接池中的最小空闲连接
min-idle: 0
# 连接池中的最大空闲连接
max-idle: 8
# 连接池的最大数据库连接数
max-active: 8
# #连接池最大阻塞等待时间(使用负值表示没有限制)
max-wait: -1ms
# 服务器配置
server:
@@ -90,4 +99,5 @@ server:
port: 18080
servlet:
# 应用的访问路径
context-path: /openhis
context-path: /healthlink-his