X-Git-Url: http://juplo.de/gitweb/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fde%2Fjuplo%2Fkafka%2FApplicationConfiguration.java;fp=src%2Fmain%2Fjava%2Fde%2Fjuplo%2Fkafka%2FApplicationConfiguration.java;h=de77c60b422ace95604e9ca07e70207614e1a9f3;hb=1e858c1835d47259583cf3cce18921c550682e2b;hp=648bb9d649fef7280c2005f803c3403568ec8031;hpb=ae796c9e9e4ec5c86853aa9b100d0cfe4deeda3c;p=demos%2Fkafka%2Ftraining diff --git a/src/main/java/de/juplo/kafka/ApplicationConfiguration.java b/src/main/java/de/juplo/kafka/ApplicationConfiguration.java index 648bb9d..de77c60 100644 --- a/src/main/java/de/juplo/kafka/ApplicationConfiguration.java +++ b/src/main/java/de/juplo/kafka/ApplicationConfiguration.java @@ -6,7 +6,6 @@ import org.springframework.boot.context.properties.EnableConfigurationProperties import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; -import org.springframework.core.task.TaskExecutor; import org.springframework.kafka.core.ConsumerFactory; @@ -16,14 +15,12 @@ public class ApplicationConfiguration { @Bean public SimpleConsumer endlessConsumer( - TaskExecutor taskExecutor, Consumer kafkaConsumer, KafkaProperties kafkaProperties, ApplicationProperties applicationProperties) { return new SimpleConsumer( - taskExecutor, kafkaProperties.getClientId(), applicationProperties.getTopic(), kafkaConsumer);