From 2370b69d969a36720621ecd6e060b2c0af7ed4ac Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Wed, 25 Sep 2024 14:20:34 +0200 Subject: [PATCH] Upgrade auf Spring Boot 3.3.4 --- pom.xml | 3 +-- src/main/java/de/juplo/kafka/Application.java | 2 +- src/main/java/de/juplo/kafka/ApplicationProperties.java | 5 ++--- 3 files changed, 4 insertions(+), 6 deletions(-) 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 -- 2.20.1