From 0f8e35f1fabd5e6bec1c1436c6e9ef5a6af48368 Mon Sep 17 00:00:00 2001 From: LaS Date: Tue, 15 Oct 2024 17:29:47 +0200 Subject: [PATCH] POM angepasst --- sonarQuest-backend/pom.xml | 10 ++++++++-- .../configurations/FlywayUpdate3To4Callback.java | 10 ++++++++++ .../src/main/resources/application.properties | 2 +- 3 files changed, 19 insertions(+), 3 deletions(-) diff --git a/sonarQuest-backend/pom.xml b/sonarQuest-backend/pom.xml index a310e299..764497e3 100644 --- a/sonarQuest-backend/pom.xml +++ b/sonarQuest-backend/pom.xml @@ -28,7 +28,8 @@ org.springframework.boot spring-boot-starter-parent - 2.2.5.RELEASE + 2.7.18 + @@ -36,7 +37,7 @@ UTF-8 UTF-8 17 - Hoxton.SR1 + 2021.0.9 viadee https://sonarcloud.io @@ -124,12 +125,17 @@ org.apache.httpcomponents httpclient + 4.5.13 commons-io commons-io 2.6 + + org.springframework.boot + spring-boot-starter-validation + diff --git a/sonarQuest-backend/src/main/java/com/viadee/sonarquest/configurations/FlywayUpdate3To4Callback.java b/sonarQuest-backend/src/main/java/com/viadee/sonarquest/configurations/FlywayUpdate3To4Callback.java index bebc0480..5066b5f6 100644 --- a/sonarQuest-backend/src/main/java/com/viadee/sonarquest/configurations/FlywayUpdate3To4Callback.java +++ b/sonarQuest-backend/src/main/java/com/viadee/sonarquest/configurations/FlywayUpdate3To4Callback.java @@ -64,4 +64,14 @@ public void handle(final Event event, final Context context) { flyway.repair(); } } + + @Override + public String getCallbackName() { + String name = this.getClass().getSimpleName(); + if (name.contains("__")) { + name = name.split("__")[1]; + } + + return name; + } } diff --git a/sonarQuest-backend/src/main/resources/application.properties b/sonarQuest-backend/src/main/resources/application.properties index f54e5d66..000519a0 100644 --- a/sonarQuest-backend/src/main/resources/application.properties +++ b/sonarQuest-backend/src/main/resources/application.properties @@ -3,7 +3,7 @@ # ======================================== # Verwendeter Algorithmus security.jwt.algorithm=HS512 -# Gütligkeit eines JWTs in Millisekunden +# Guetligkeit eines JWTs in Millisekunden security.jwt.validity=7200000 # Private Key security.jwt.privatekey=please_change_this_key_in_production