From cdf9c2805455d737f6379fff0e9fe293bfc5231a Mon Sep 17 00:00:00 2001 From: Anthony Stirling <77850077+Frooodle@users.noreply.github.com> Date: Sat, 9 Aug 2025 15:40:26 +0100 Subject: [PATCH] Update app/core/src/main/resources/application.properties Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- app/core/src/main/resources/application.properties | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/core/src/main/resources/application.properties b/app/core/src/main/resources/application.properties index 4efadfa9d..da1999dd0 100644 --- a/app/core/src/main/resources/application.properties +++ b/app/core/src/main/resources/application.properties @@ -35,7 +35,13 @@ spring.datasource.username=sa spring.datasource.password= spring.h2.console.enabled=false spring.jpa.hibernate.ddl-auto=update +# Defer datasource initialization to ensure that the database is fully set up +# before Hibernate attempts to access it. This is particularly useful when +# using database initialization scripts or tools. spring.jpa.defer-datasource-initialization=true + +# Disable SQL logging to avoid cluttering the logs in production. Enable this +# property during development if you need to debug SQL queries. spring.jpa.show-sql=false server.servlet.session.timeout:30m # Change the default URL path for OpenAPI JSON