From: Kai Moritz Date: Sun, 5 May 2024 09:17:40 +0000 (+0200) Subject: users: 1.0.5 - Updated Spring Boot to `3.2.5` X-Git-Tag: users-1.0.5 X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=aa0d1c4c8e47b2fffc5fa0ca2cae83f64ed8dd4e;p=demos%2Fkafka%2Fwordcount users: 1.0.5 - Updated Spring Boot to `3.2.5` --- diff --git a/Dockerfile b/Dockerfile index 9b3b5f5..4e9a5d8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM openjdk:11-jre-slim +FROM eclipse-temurin:17-jre COPY target/*.jar /opt/app.jar EXPOSE 8082 ENTRYPOINT ["java", "-jar", "/opt/app.jar"] diff --git a/pom.xml b/pom.xml index 70d5654..6273a0e 100644 --- a/pom.xml +++ b/pom.xml @@ -5,12 +5,12 @@ org.springframework.boot spring-boot-starter-parent - 2.5.4 + 3.2.5 de.juplo.kafka.wordcount users - 1.0.4 + 1.0.5 Wordcount-Users Users-service of the multi-user wordcount-example diff --git a/src/main/java/de/juplo/kafka/wordcount/users/User.java b/src/main/java/de/juplo/kafka/wordcount/users/User.java index 04c9e0c..5dba5fa 100644 --- a/src/main/java/de/juplo/kafka/wordcount/users/User.java +++ b/src/main/java/de/juplo/kafka/wordcount/users/User.java @@ -1,11 +1,11 @@ package de.juplo.kafka.wordcount.users; +import jakarta.validation.constraints.NotEmpty; import lombok.EqualsAndHashCode; import lombok.Getter; import lombok.Setter; import lombok.ToString; -import javax.validation.constraints.NotEmpty; @Getter diff --git a/src/main/java/de/juplo/kafka/wordcount/users/UsersStreamProcessor.java b/src/main/java/de/juplo/kafka/wordcount/users/UsersStreamProcessor.java index 1c7572e..bc78988 100644 --- a/src/main/java/de/juplo/kafka/wordcount/users/UsersStreamProcessor.java +++ b/src/main/java/de/juplo/kafka/wordcount/users/UsersStreamProcessor.java @@ -2,6 +2,8 @@ package de.juplo.kafka.wordcount.users; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.ObjectMapper; +import jakarta.annotation.PostConstruct; +import jakarta.annotation.PreDestroy; import lombok.extern.slf4j.Slf4j; import org.apache.kafka.clients.consumer.ConsumerConfig; import org.apache.kafka.common.serialization.Serdes; @@ -13,8 +15,6 @@ import org.apache.kafka.streams.state.ReadOnlyKeyValueStore; import org.springframework.boot.SpringApplication; import org.springframework.context.ConfigurableApplicationContext; -import javax.annotation.PostConstruct; -import javax.annotation.PreDestroy; import java.net.URI; import java.util.Optional; import java.util.Properties;