From 5c698151c9f80219fcb821ca71a3f9c78da4d16f Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Sun, 5 May 2024 07:43:58 +0200 Subject: [PATCH] Upgreaded Spring Boot from `2.3.4.RELEASE` to `3.2.5` --- Dockerfile | 2 +- pom.xml | 2 +- .../java/de/juplo/demo/kafka/deduplication/Deduplicator.java | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8b90411..96e2f0c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM openjdk:11-jre-slim +FROM eclipse-temurin:17-jre-alpine COPY target/streams-deduplicator-*.jar /opt/app.jar EXPOSE 8080 CMD ["java", "-jar", "/opt/app.jar"] diff --git a/pom.xml b/pom.xml index 8db5538..f363b88 100644 --- a/pom.xml +++ b/pom.xml @@ -8,7 +8,7 @@ org.springframework.boot spring-boot-starter-parent - 2.3.4.RELEASE + 3.2.5 de.juplo.demo.kafka diff --git a/src/main/java/de/juplo/demo/kafka/deduplication/Deduplicator.java b/src/main/java/de/juplo/demo/kafka/deduplication/Deduplicator.java index 38ec22a..e1027d0 100644 --- a/src/main/java/de/juplo/demo/kafka/deduplication/Deduplicator.java +++ b/src/main/java/de/juplo/demo/kafka/deduplication/Deduplicator.java @@ -1,6 +1,8 @@ package de.juplo.demo.kafka.deduplication; +import jakarta.annotation.PostConstruct; +import jakarta.annotation.PreDestroy; import org.apache.kafka.common.serialization.IntegerSerializer; import org.apache.kafka.common.serialization.Serdes; import org.apache.kafka.streams.*; @@ -18,8 +20,6 @@ import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RestController; -import javax.annotation.PostConstruct; -import javax.annotation.PreDestroy; import java.time.Duration; import java.util.Properties; -- 2.20.1