Unverified Commit 59a32223 authored by ZackYoung's avatar ZackYoung Committed by GitHub

[Optimize][h2]optimize h2 (#2506)

* optimize_h2 * optimize_h2
parent d6469275
......@@ -18,8 +18,18 @@
spring:
datasource:
driver-class-name: org.h2.Driver
url: jdbc:h2:mem:dinky;MODE=MySQL;DB_CLOSE_DELAY=-1;DATABASE_TO_LOWER=true;INIT=runscript from 'classpath:db/db-h2.sql'
# url: jdbc:h2:mem:dinky;MODE=MySQL;DB_CLOSE_DELAY=-1;DATABASE_TO_LOWER=true;
url: jdbc:h2:./tmp/db/h2;MODE=MySQL;DB_CLOSE_DELAY=-1;DATABASE_TO_LOWER=true;AUTO_SERVER=TRUE;AUTO_SERVER_PORT=9092;
druid:
initial-size: 1
username: dinky
password: dinky
druid:
initial-size: 1
\ No newline at end of file
h2:
console:
enabled: true
path: /h2
sql:
init:
schema-locations: classpath:db/db-h2-ddl.sql
mode: always
data-locations: classpath:db/db-h2-dml.sql
\ No newline at end of file
......@@ -15,7 +15,8 @@ spring:
# If you use pgsql database, please configure pgsql database connection information in application-pgsql.yml
# If you use the h2 database, please configure the h2 database connection information in application-h2.yml,
# note: the h2 database is only for experience use, and the related data that has been created cannot be migrated, please use it with caution
active: h2,jmx #[h2,mysql,pgsql]
active: h2 #[h2,mysql,pgsql]
include: jmx
# mvc config
mvc:
......@@ -147,12 +148,13 @@ sa-token:
is-read-header: true
token-name: token
#################################################################################################################
################################################# knife4j Config ################################################
#################################################################################################################
knife4j:
enable: true
setting:
language: en
sms:
is-print: false
......
This diff is collapsed.
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