From: Kai Moritz Date: Wed, 25 Sep 2024 12:20:34 +0000 (+0200) Subject: Upgrade auf Spring Boot 3.3.4 X-Git-Tag: consumer/spring-consumer--BRANCH-ENDE~10 X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=2370b69d969a36720621ecd6e060b2c0af7ed4ac;p=demos%2Fkafka%2Ftraining Upgrade auf Spring Boot 3.3.4 --- diff --git a/pom.xml b/pom.xml index f161e17..c81fd07 100644 --- a/pom.xml +++ b/pom.xml @@ -7,7 +7,7 @@ org.springframework.boot spring-boot-starter-parent - 2.7.2 + 3.3.4 @@ -19,7 +19,6 @@ 17 - 1.18.30 diff --git a/src/main/java/de/juplo/kafka/Application.java b/src/main/java/de/juplo/kafka/Application.java index be152fa..3900c5f 100644 --- a/src/main/java/de/juplo/kafka/Application.java +++ b/src/main/java/de/juplo/kafka/Application.java @@ -1,5 +1,6 @@ package de.juplo.kafka; +import jakarta.annotation.PreDestroy; import lombok.extern.slf4j.Slf4j; import org.apache.kafka.clients.consumer.Consumer; import org.springframework.beans.factory.annotation.Autowired; @@ -11,7 +12,6 @@ import org.springframework.context.ConfigurableApplicationContext; import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor; import org.springframework.util.concurrent.ListenableFuture; -import javax.annotation.PreDestroy; import java.util.concurrent.ExecutionException; diff --git a/src/main/java/de/juplo/kafka/ApplicationProperties.java b/src/main/java/de/juplo/kafka/ApplicationProperties.java index 4092fa2..43e15bf 100644 --- a/src/main/java/de/juplo/kafka/ApplicationProperties.java +++ b/src/main/java/de/juplo/kafka/ApplicationProperties.java @@ -1,13 +1,12 @@ package de.juplo.kafka; +import jakarta.validation.constraints.NotEmpty; +import jakarta.validation.constraints.NotNull; import lombok.Getter; import lombok.Setter; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.validation.annotation.Validated; -import javax.validation.constraints.NotEmpty; -import javax.validation.constraints.NotNull; - @ConfigurationProperties(prefix = "simple.consumer") @Validated