From: Kai Moritz Date: Sat, 3 Feb 2024 19:43:29 +0000 (+0100) Subject: refactor: `KafkaServicesApplicationRunner` aufgeräumt X-Git-Tag: rebase--2024-02-20--10-29~14 X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=5188c8b1a058dfe790e0befc74b3f094cd95fb24;p=demos%2Fkafka%2Fchat refactor: `KafkaServicesApplicationRunner` aufgeräumt --- diff --git a/src/main/java/de/juplo/kafka/chat/backend/implementation/kafka/KafkaServicesApplicationRunner.java b/src/main/java/de/juplo/kafka/chat/backend/implementation/kafka/KafkaServicesApplicationRunner.java index 44f411f8..69e94c9e 100644 --- a/src/main/java/de/juplo/kafka/chat/backend/implementation/kafka/KafkaServicesApplicationRunner.java +++ b/src/main/java/de/juplo/kafka/chat/backend/implementation/kafka/KafkaServicesApplicationRunner.java @@ -2,7 +2,6 @@ package de.juplo.kafka.chat.backend.implementation.kafka; import jakarta.annotation.PreDestroy; import lombok.RequiredArgsConstructor; -import lombok.extern.slf4j.Slf4j; import org.springframework.boot.ApplicationArguments; import org.springframework.boot.ApplicationRunner; import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; @@ -15,14 +14,13 @@ import org.springframework.stereotype.Component; havingValue = "kafka") @Component @RequiredArgsConstructor -@Slf4j public class KafkaServicesApplicationRunner implements ApplicationRunner { private final ConsumerTaskRunner consumerTaskRunner; @Override - public void run(ApplicationArguments args) throws Exception + public void run(ApplicationArguments args) { consumerTaskRunner.executeConsumerTasks(); }