From 596583648651d276a06ad47e188099233c1e6a91 Mon Sep 17 00:00:00 2001 From: "k.triantafyllou" Date: Thu, 31 Oct 2024 14:12:33 +0200 Subject: [PATCH] Add missing authorization properties in Application. Add hibernate dialect for postgres12 --- .../java/eu/dnetlib/developers/DevelopersAPIApplication.java | 1 + src/main/resources/developers.properties | 1 + 2 files changed, 2 insertions(+) diff --git a/src/main/java/eu/dnetlib/developers/DevelopersAPIApplication.java b/src/main/java/eu/dnetlib/developers/DevelopersAPIApplication.java index 1e58371..80b3fcf 100644 --- a/src/main/java/eu/dnetlib/developers/DevelopersAPIApplication.java +++ b/src/main/java/eu/dnetlib/developers/DevelopersAPIApplication.java @@ -13,6 +13,7 @@ import org.springframework.context.annotation.PropertySources; @SpringBootApplication(scanBasePackages = {"eu.dnetlib.developers"}) @PropertySources({ @PropertySource("classpath:authentication.properties"), + @PropertySource("classpath:authorization.properties"), @PropertySource("classpath:developers.properties"), @PropertySource(value = "classpath:dnet-override.properties", ignoreResourceNotFound = true) }) diff --git a/src/main/resources/developers.properties b/src/main/resources/developers.properties index eb8af4e..c4bafe5 100644 --- a/src/main/resources/developers.properties +++ b/src/main/resources/developers.properties @@ -1,4 +1,5 @@ developers.datasource.driver=org.postgresql.Driver +spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect ## API Documentation Properties api.title = Developers API