chore: Update H2 database dependency and configuration

This commit is contained in:
2024-07-02 14:39:08 +02:00
parent 7bc56eee18
commit 9434de5bfc
5 changed files with 53 additions and 3 deletions

View File

@@ -1 +1,14 @@
spring.application.name=DataDash
# Datasource configuration
spring.datasource.url=jdbc:h2:mem:studentcoursedb;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE
spring.datasource.driverClassName=org.h2.Driver
spring.jpa.database-platform=org.hibernate.dialect.H2Dialect
spring.sql.init.mode=always
spring.jpa.hibernate.ddl-auto=none
# Uncomment for web console
#spring.h2.console.enabled=true
#spring.h2.console.path=/h2-console
#spring.datasource.username=sa
#spring.datasource.password=pwd