5
0
mirror of https://github.com/AJMicke/KickerELO.git synced 2026-03-12 05:51:05 +01:00

Use in-memory database for testing, add test data on startup when in test mode.

This commit is contained in:
Anton Micke
2025-05-21 23:39:17 +02:00
committed by AJMicke
parent eb36a25373
commit 4fa309da75
4 changed files with 293 additions and 2 deletions

View File

@@ -8,4 +8,7 @@ spring.datasource.password=${DATABASE_PASSWORD}
spring.datasource.driver-class-name=org.mariadb.jdbc.Driver
spring.jpa.hibernate.ddl-auto=validate
spring.jpa.show-sql=false
spring.jpa.open-in-view=false
spring.jpa.open-in-view=false
# In prod mode, never add the test data to the database
spring.sql.init.mode=never