From a6846108288e7323aa4ad6e460b8783c407c9dc5 Mon Sep 17 00:00:00 2001 From: iwangjie <345127857@qq.com> Date: Fri, 28 Oct 2022 14:49:19 +0800 Subject: [PATCH] smart h2 storage path. --- .../src/main/resources/application-h2.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hippo4j-server/hippo4j-bootstrap/src/main/resources/application-h2.properties b/hippo4j-server/hippo4j-bootstrap/src/main/resources/application-h2.properties index b4bdea1c..67d0d7f8 100644 --- a/hippo4j-server/hippo4j-bootstrap/src/main/resources/application-h2.properties +++ b/hippo4j-server/hippo4j-bootstrap/src/main/resources/application-h2.properties @@ -4,6 +4,6 @@ hippo4j.database.init_enable=true hippo4j.database.init_script=sql-script/h2/hippo4j_manager.sql spring.datasource.driver-class-name=org.h2.Driver -spring.datasource.url=jdbc:h2:file:{your storage address}/h2_hippo4j_test_file;DB_CLOSE_DELAY=-1;DATABASE_TO_UPPER=false;MODE=MYSQL; +spring.datasource.url=jdbc:h2:file:${HOME:${HOMEDRIVE}${HOMEPATH}}/h2_hippo4j_test_file;DB_CLOSE_DELAY=-1;DATABASE_TO_UPPER=false;MODE=MYSQL; spring.datasource.username=sa spring.datasource.password=sa