Skip to content

Instantly share code, notes, and snippets.

@kelverarruda
Created May 24, 2021 23:34
Show Gist options
  • Save kelverarruda/740e96a54d72832de2a0f2b82fbb642b to your computer and use it in GitHub Desktop.
Save kelverarruda/740e96a54d72832de2a0f2b82fbb642b to your computer and use it in GitHub Desktop.
Config Spring Data H2 DB
spring.datasource.url=jdbc:h2:mem:testdb
spring.datasource.driverClassName=org.h2.Driver
spring.datasource.username=sa
spring.datasource.password=
spring.jpa.database-platform=org.hibernate.dialect.H2Dialect
spring.jpa.hibernate.ddl-auto=update
<!-- Show SQL in console -->
spring.jpa.show-sql=true
<!-- Enable/Disable H2 Console -->
spring.h2.console.enabled=true
<!-- Path URI H2 Console -->
spring.h2.console.path=/h2-console
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment