From 07ada54bc83d372876eb73904eb826f5d25756eb Mon Sep 17 00:00:00 2001 From: filippo-ferrari Date: Fri, 6 Sep 2024 21:55:14 +0200 Subject: [PATCH] feat: added application.properties, changed .gitignore --- .gitignore | 1 - src/main/resources/application.properties | 16 ++++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 src/main/resources/application.properties diff --git a/.gitignore b/.gitignore index 37b50eb..739b6cf 100644 --- a/.gitignore +++ b/.gitignore @@ -5,7 +5,6 @@ .project .classpath .env -application.properties *.iml .DS_Store diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties new file mode 100644 index 0000000..fd13d90 --- /dev/null +++ b/src/main/resources/application.properties @@ -0,0 +1,16 @@ +server.port=${PORT:8080} +logging.level.org.atmosphere = warn +spring.mustache.check-template-location = false + +# Launch the default browser when starting the application in development mode +#vaadin.launch-browser=true +# PostgreSQL configuration. +spring.datasource.url = ${DB_ADDRESS}/${DB_NAME} +spring.datasource.username = ${DB_USER} +spring.datasource.password = ${DB_PASSWORD} +spring.jpa.hibernate.ddl-auto = update +# To improve the performance during development. +# For more information https://vaadin.com/docs/latest/integrations/spring/configuration#special-configuration-parameters +vaadin.allowed-packages = com.vaadin,org.vaadin,dev.hilla,com.application.munera +spring.jpa.defer-datasource-initialization = true +spring.sql.init.mode = always