From e520be0286cdd7556faf4a7d3f3a96c05764bc67 Mon Sep 17 00:00:00 2001 From: weihu Date: Tue, 6 Sep 2022 17:31:14 +0800 Subject: [PATCH] update application.properties --- .../src/main/resources/application-h2.properties | 6 ------ .../main/resources/application-mysql.properties | 5 ----- .../src/main/resources/application.properties | 14 ++++++++++++++ 3 files changed, 14 insertions(+), 11 deletions(-) delete mode 100644 hippo4j-server/src/main/resources/application-h2.properties delete 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 deleted file mode 100644 index b2a1a3d0..00000000 --- a/hippo4j-server/src/main/resources/application-h2.properties +++ /dev/null @@ -1,6 +0,0 @@ -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 deleted file mode 100644 index d751e3f9..00000000 --- a/hippo4j-server/src/main/resources/application-mysql.properties +++ /dev/null @@ -1,5 +0,0 @@ -### 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 diff --git a/hippo4j-server/src/main/resources/application.properties b/hippo4j-server/src/main/resources/application.properties index 09fdff08..7c71961b 100644 --- a/hippo4j-server/src/main/resources/application.properties +++ b/hippo4j-server/src/main/resources/application.properties @@ -45,3 +45,17 @@ mybatis-plus.global-config.banner=false mybatis-plus.global-config.db-config.logic-delete-field=delFlag mybatis-plus.global-config.db-config.logic-delete-value=1 mybatis-plus.global-config.db-config.logic-not-delete-value=0 + + +spring.profiles=mysql +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=root +--- +spring.profiles=h2 +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 \ No newline at end of file