From 3a711eda2fe5f717cb2237725ad210d6464729eb Mon Sep 17 00:00:00 2001 From: weihu Date: Tue, 6 Sep 2022 13:00:36 +0800 Subject: [PATCH] Support h2 database --- hippo4j-server/src/main/resources/application-h2.properties | 6 ++++++ .../src/main/resources/application-mysql.properties | 5 +++++ 2 files changed, 11 insertions(+) create mode 100644 hippo4j-server/src/main/resources/application-h2.properties create mode 100644 hippo4j-server/src/main/resources/application-mysql.properties diff --git a/hippo4j-server/src/main/resources/application-h2.properties b/hippo4j-server/src/main/resources/application-h2.properties new file mode 100644 index 00000000..b2a1a3d0 --- /dev/null +++ b/hippo4j-server/src/main/resources/application-h2.properties @@ -0,0 +1,6 @@ +spring.datasource.driver-class-name=org.h2.Driver +spring.datasource.url=jdbc:h2:mem:hippo4j_manager;DB_CLOSE_DELAY=-1;MODE=MySQL; +spring.datasource.username=sa +spring.datasource.password=sa +spring.datasource.schema=classpath:sql-script/h2/hippo4j_manager.sql + diff --git a/hippo4j-server/src/main/resources/application-mysql.properties b/hippo4j-server/src/main/resources/application-mysql.properties new file mode 100644 index 00000000..d751e3f9 --- /dev/null +++ b/hippo4j-server/src/main/resources/application-mysql.properties @@ -0,0 +1,5 @@ +### Data source customization section +spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver +spring.datasource.url=jdbc:mysql://localhost:3306/hippo4j_manager?characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&serverTimezone=GMT%2B8 +spring.datasource.username=root +spring.datasource.password=123456 \ No newline at end of file