Created
May 24, 2021 23:34
-
-
Save kelverarruda/740e96a54d72832de2a0f2b82fbb642b to your computer and use it in GitHub Desktop.
Config Spring Data H2 DB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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