application.properties to config H2 Spring Boot Prj

This commit is contained in:
YuCheng Hu 2020-04-04 22:26:48 -04:00
parent 72fb7b922c
commit e9e5017970
1 changed files with 16 additions and 0 deletions

View File

@ -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