Upgreaded Spring Boot from `2.3.4.RELEASE` to `3.2.5`
authorKai Moritz <kai@juplo.de>
Sun, 5 May 2024 05:43:58 +0000 (07:43 +0200)
committerKai Moritz <kai@juplo.de>
Sun, 5 May 2024 05:54:06 +0000 (07:54 +0200)
Dockerfile
pom.xml
src/main/java/de/juplo/demo/kafka/deduplication/Deduplicator.java

index 8b90411..96e2f0c 100644 (file)
@@ -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 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -8,7 +8,7 @@
   <parent>
     <groupId>org.springframework.boot</groupId>
     <artifactId>spring-boot-starter-parent</artifactId>
-    <version>2.3.4.RELEASE</version>
+    <version>3.2.5</version>
   </parent>
 
   <groupId>de.juplo.demo.kafka</groupId>
index 38ec22a..e1027d0 100644 (file)
@@ -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;