From 8a762ec3bc7c164e3dc9bd82e0ab6e495e7df099 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Sun, 27 Oct 2024 14:05:17 +0100 Subject: [PATCH] =?utf8?q?In=20der=20Configuration=20wird=20das=20Interfac?= =?utf8?q?e=20des=20`KafkaProducer`=20=C3=BCbergeben?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/main/java/de/juplo/kafka/ApplicationConfiguration.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/de/juplo/kafka/ApplicationConfiguration.java b/src/main/java/de/juplo/kafka/ApplicationConfiguration.java index 1c4262e..776c737 100644 --- a/src/main/java/de/juplo/kafka/ApplicationConfiguration.java +++ b/src/main/java/de/juplo/kafka/ApplicationConfiguration.java @@ -1,6 +1,7 @@ package de.juplo.kafka; import org.apache.kafka.clients.producer.KafkaProducer; +import org.apache.kafka.clients.producer.Producer; import org.apache.kafka.common.serialization.StringSerializer; import org.springframework.boot.context.properties.EnableConfigurationProperties; import org.springframework.context.annotation.Bean; @@ -16,7 +17,7 @@ public class ApplicationConfiguration @Bean public ExampleProducer exampleProducer( ApplicationProperties properties, - KafkaProducer kafkaProducer) + Producer kafkaProducer) { return new ExampleProducer( -- 2.20.1