Created
January 7, 2025 11:18
-
-
Save bastienapp/1b02475d283f0e23bd15195a462e7e80 to your computer and use it in GitHub Desktop.
Spring Boot H2 Database configuration
This file contains hidden or 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
server.port=8901 | |
spring.datasource.url=jdbc:h2:mem:inventory_db;DB_CLOSE_DELAY=-1 | |
spring.datasource.driver-class-name=org.h2.Driver | |
spring.datasource.username=sa | |
spring.datasource.password=password | |
# JPA configuration | |
spring.jpa.database-platform=org.hibernate.dialect.H2Dialect | |
spring.jpa.hibernate.ddl-auto=update | |
spring.jpa.show-sql=true | |
spring.h2.console.enabled=true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment