Skip to content

Instantly share code, notes, and snippets.

@ahmedhosnypro
Created June 23, 2023 18:10
Show Gist options
  • Save ahmedhosnypro/36fae3500429476e9d97eb41ff1baeb4 to your computer and use it in GitHub Desktop.
Save ahmedhosnypro/36fae3500429476e9d97eb41ff1baeb4 to your computer and use it in GitHub Desktop.
SpringBoot H2 DB
#h2
spring.datasource.url=jdbc:h2:file:../recipes_db
spring.datasource.driverClassName=org.h2.Driver
spring.datasource.username=sa
spring.datasource.password=
spring.jpa.database-platform=org.hibernate.dialect.H2Dialect
spring.h2.console.enabled=true
spring.h2.console.path=/h2-console
spring.jpa.hibernate.ddl-auto=update
spring.jpa.show-sql=true
spring.jpa.properties.hibernate.format_sql=true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment