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