From: Kai Moritz Date: Sat, 3 Feb 2024 19:43:29 +0000 (+0100) Subject: refactor: `KafkaServicesApplicationRunner` aufgeräumt X-Git-Tag: rebase--2024-02-18--17-42~7 X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=29d46cb6f6bfd15b3d4e3b8b130db2d0b94d64fe;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(); }