From ffdaa26647525b5bca6aff60d399aa542fea015e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Szymon=20P=C3=B3=C5=82torak?= Date: Wed, 29 Nov 2023 21:20:05 +0100 Subject: [PATCH] Added backend basic db config --- .../src/main/resources/application.yml | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/corn-backend/src/main/resources/application.yml b/corn-backend/src/main/resources/application.yml index e69de29b..e591cd91 100644 --- a/corn-backend/src/main/resources/application.yml +++ b/corn-backend/src/main/resources/application.yml @@ -0,0 +1,20 @@ +server: + port: 8080 + +spring: + datasource: + url: ${SPRING_DATASOURCE_URL} + username: ${POSTGRES_USER} + password: ${POSTGRES_PASSWORD} + + jpa: + hibernate: + ddl-auto: create-drop + show-sql: true + properties: + hibernate: + jdbc: + lob: + non_contextual_creation: true + dialect: org.hibernate.dialect.PostgreSQLDialect + format_sql: true