From e9e50179709bb25d0949a6031d741dad072b5519 Mon Sep 17 00:00:00 2001 From: YuCheng Hu Date: Sat, 4 Apr 2020 22:26:48 -0400 Subject: [PATCH] application.properties to config H2 Spring Boot Prj --- .../src/main/resources/application.properties | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 persistence-modules/spring-boot-persistence-h2-console/src/main/resources/application.properties diff --git a/persistence-modules/spring-boot-persistence-h2-console/src/main/resources/application.properties b/persistence-modules/spring-boot-persistence-h2-console/src/main/resources/application.properties new file mode 100644 index 0000000000..82a2e24211 --- /dev/null +++ b/persistence-modules/spring-boot-persistence-h2-console/src/main/resources/application.properties @@ -0,0 +1,16 @@ +spring.datasource.url=jdbc:h2:mem:mydb;DB_CLOSE_ON_EXIT=FALSE +spring.datasource.driverClassName=org.h2.Driver +spring.datasource.username=sa +spring.datasource.password= +spring.datasource.data=classpath:data-trans.sql + +# JPA +spring.jpa.hibernate.ddl-auto=create-drop +spring.jpa.show-sql=true +spring.jpa.properties.hibernate.format_sql=true +spring.jpa.properties.hibernate.validator.apply_to_ddl=false +#spring.jpa.properties.hibernate.check_nullability=true + +spring.h2.console.enabled=true +spring.h2.console.path=/h2-console +debug=true