This commit is contained in:
@@ -5,7 +5,7 @@ spring:
|
|||||||
application:
|
application:
|
||||||
name: building
|
name: building
|
||||||
|
|
||||||
# PostgreSQL数据库配置 - 环境变量注入
|
# PostgreSQL数据库配置
|
||||||
datasource:
|
datasource:
|
||||||
driver-class-name: org.postgresql.Driver
|
driver-class-name: org.postgresql.Driver
|
||||||
url: jdbc:postgresql://${SPRING_DATASOURCE_HOST:localhost}:${SPRING_DATASOURCE_PORT:5432}/${SPRING_DATASOURCE_DB:building_materials}
|
url: jdbc:postgresql://${SPRING_DATASOURCE_HOST:localhost}:${SPRING_DATASOURCE_PORT:5432}/${SPRING_DATASOURCE_DB:building_materials}
|
||||||
@@ -14,12 +14,11 @@ spring:
|
|||||||
hikari:
|
hikari:
|
||||||
initialization-fail-timeout: 60000
|
initialization-fail-timeout: 60000
|
||||||
|
|
||||||
# 自动执行建表SQL
|
# 自动执行建表SQL(首次启动时)
|
||||||
sql:
|
sql:
|
||||||
init:
|
init:
|
||||||
mode: always
|
mode: always
|
||||||
schema-locations: classpath:sql/init.sql
|
schema-locations: classpath:sql/init.sql
|
||||||
continue-on-error: true
|
|
||||||
|
|
||||||
# Redis配置 - 环境变量注入
|
# Redis配置 - 环境变量注入
|
||||||
redis:
|
redis:
|
||||||
|
|||||||
Reference in New Issue
Block a user