Commit 53570949 authored by youxiaoji's avatar youxiaoji

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

parent 1c89f4f7
......@@ -4,10 +4,10 @@ spring:
# 数据源配置
datasource:
url: jdbc:mysql://192.168.219.129:3306/hiagent?useUnicode=true&characterEncoding=utf-8&useSSL=false
driver-class-name: com.mysql.cj.jdbc.Driver
username: root
password: 123456Aa?
url: jdbc:mysql://${DB_HOST:192.168.219.129}:3306/hiagent?allowMultiQueries=true&allowPublicKeyRetrieval=true&useSSL=false&serverTimezone=Asia/Shanghai
driver-class-name: ${DB_DRIVER:com.mysql.cj.jdbc.Driver}
username: ${DB_NAME:root}
password: ${DB_PASSWORD:123456Aa?}
hikari:
maximum-pool-size: 10
minimum-idle: 2
......@@ -22,7 +22,6 @@ spring:
sql:
init:
schema-locations: classpath:schema.sql
data-locations: classpath:data.sql
mode: always
# JPA/Hibernate配置
......@@ -36,10 +35,10 @@ spring:
format_sql: true
# H2 Console配置(仅开发环境)
h2:
console:
enabled: true
path: /h2-console
# h2:
# console:
# enabled: true
# path: /h2-console
# Redis配置
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