Commit 53570949 authored by youxiaoji's avatar youxiaoji

* [增加数据库配置环境变量]

parent 1c89f4f7
...@@ -4,10 +4,10 @@ spring: ...@@ -4,10 +4,10 @@ spring:
# 数据源配置 # 数据源配置
datasource: datasource:
url: jdbc:mysql://192.168.219.129:3306/hiagent?useUnicode=true&characterEncoding=utf-8&useSSL=false url: jdbc:mysql://${DB_HOST:192.168.219.129}:3306/hiagent?allowMultiQueries=true&allowPublicKeyRetrieval=true&useSSL=false&serverTimezone=Asia/Shanghai
driver-class-name: com.mysql.cj.jdbc.Driver driver-class-name: ${DB_DRIVER:com.mysql.cj.jdbc.Driver}
username: root username: ${DB_NAME:root}
password: 123456Aa? password: ${DB_PASSWORD:123456Aa?}
hikari: hikari:
maximum-pool-size: 10 maximum-pool-size: 10
minimum-idle: 2 minimum-idle: 2
...@@ -22,7 +22,6 @@ spring: ...@@ -22,7 +22,6 @@ spring:
sql: sql:
init: init:
schema-locations: classpath:schema.sql schema-locations: classpath:schema.sql
data-locations: classpath:data.sql
mode: always mode: always
# JPA/Hibernate配置 # JPA/Hibernate配置
...@@ -36,10 +35,10 @@ spring: ...@@ -36,10 +35,10 @@ spring:
format_sql: true format_sql: true
# H2 Console配置(仅开发环境) # H2 Console配置(仅开发环境)
h2: # h2:
console: # console:
enabled: true # enabled: true
path: /h2-console # path: /h2-console
# Redis配置 # Redis配置
data: data:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment