From 8409088225b8d2af536c7b89b600e96ede9e74e7 Mon Sep 17 00:00:00 2001 From: VictorDelCampo Date: Tue, 14 Jan 2025 11:20:04 +0100 Subject: [PATCH] Keep fallback controller to local profile RISDEV-0000 --- backend/gradle.properties | 12 ++++++------ .../controller/FrontendFallbackController.java | 2 ++ backend/src/main/resources/application.yaml | 4 ---- 3 files changed, 8 insertions(+), 10 deletions(-) diff --git a/backend/gradle.properties b/backend/gradle.properties index 13a5c7b1c..9abe17904 100644 --- a/backend/gradle.properties +++ b/backend/gradle.properties @@ -1,6 +1,6 @@ -org.gradle.jvmargs=\ - --add-exports jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED --add-exports \ - jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED --add-exports jdk.\ - compiler/com.sun.tools.javac.parser=ALL-UNNAMED --add-exports jdk.\ - compiler/com.sun.tools.javac.tree=ALL-UNNAMED --add-exports jdk.compiler/com.\ - sun.tools.javac.util=ALL-UNNAMED +org.gradle.jvmargs=--add-exports jdk.compiler/com.sun.tools.javac.\ + api=ALL-UNNAMED --add-exports jdk.compiler/com.sun.tools.javac.\ + file=ALL-UNNAMED --add-exports jdk.compiler/com.sun.tools.javac.\ + parser=ALL-UNNAMED --add-exports jdk.compiler/com.sun.tools.javac.\ + tree=ALL-UNNAMED --add-exports jdk.compiler/com.sun.tools.javac.\ + util=ALL-UNNAMED diff --git a/backend/src/main/java/de/bund/digitalservice/ris/norms/adapter/input/restapi/controller/FrontendFallbackController.java b/backend/src/main/java/de/bund/digitalservice/ris/norms/adapter/input/restapi/controller/FrontendFallbackController.java index d85e2712f..3e7f8b345 100644 --- a/backend/src/main/java/de/bund/digitalservice/ris/norms/adapter/input/restapi/controller/FrontendFallbackController.java +++ b/backend/src/main/java/de/bund/digitalservice/ris/norms/adapter/input/restapi/controller/FrontendFallbackController.java @@ -1,5 +1,6 @@ package de.bund.digitalservice.ris.norms.adapter.input.restapi.controller; +import org.springframework.context.annotation.Profile; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PathVariable; @@ -11,6 +12,7 @@ * It ensures that the Vue.js single-page application (SPA) can take over client-side routing. */ @Controller +@Profile("local") public class FrontendFallbackController { /** diff --git a/backend/src/main/resources/application.yaml b/backend/src/main/resources/application.yaml index 8b2549cd8..fcaf85c93 100644 --- a/backend/src/main/resources/application.yaml +++ b/backend/src/main/resources/application.yaml @@ -69,7 +69,3 @@ otc: publish: cron: "0 0 2 * * 1-5" # # Runs at 2:00 AM UTC (3:00 AM Berlin time in CET) - -logging: - level: - org.springframework: TRACE