Use persistent database and add datasource

This commit is contained in:
Torge Hamann 2024-11-17 19:52:58 +01:00
parent 4d04fc64aa
commit 59949e067b
3 changed files with 19 additions and 3 deletions

View file

@ -2,12 +2,12 @@
spring.application.name=home-cert-assistant
# Database
driverClassName=org.sqlite.JDBC
url=jdbc:sqlite:sqlLiteDb:database?cache=shared
url=jdbc:sqlite:sqLiteDb.db
username=admin
password=admin
spring.jpa.database-platform=org.hibernate.community.dialect.SQLiteDialect
#TODO: Use flyway for db setup
hibernate.hbm2ddl.auto=create-drop
hibernate.hbm2ddl.auto=update
hibernate.show_sql=true
# Logging