diff --git a/healthlink-his-server/healthlink-his-application/src/main/resources/application-dev.yml b/healthlink-his-server/healthlink-his-application/src/main/resources/application-dev.yml index 09173cd0f..c5844befe 100755 --- a/healthlink-his-server/healthlink-his-application/src/main/resources/application-dev.yml +++ b/healthlink-his-server/healthlink-his-application/src/main/resources/application-dev.yml @@ -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 \ No newline at end of file + context-path: /healthlink-his + diff --git a/healthlink-his-server/healthlink-his-application/src/main/resources/application-dev.yml.bak b/healthlink-his-server/healthlink-his-application/src/main/resources/application-dev.yml.bak index bf984f0d4..c5844befe 100644 --- a/healthlink-his-server/healthlink-his-application/src/main/resources/application-dev.yml.bak +++ b/healthlink-his-server/healthlink-his-application/src/main/resources/application-dev.yml.bak @@ -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 \ No newline at end of file + context-path: /healthlink-his +