From: Kai Moritz Date: Thu, 26 Sep 2024 12:17:13 +0000 (+0200) Subject: Spring-Boot findet entsprechend benannte Methoden automatisch X-Git-Tag: producer/rest-producer--BRANCH-ENDE~1 X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=4965203a21962b033c61b1d171b4b535b157cd43;p=demos%2Fkafka%2Ftraining Spring-Boot findet entsprechend benannte Methoden automatisch --- diff --git a/src/main/java/de/juplo/kafka/ApplicationConfiguration.java b/src/main/java/de/juplo/kafka/ApplicationConfiguration.java index 132413c..9ffe585 100644 --- a/src/main/java/de/juplo/kafka/ApplicationConfiguration.java +++ b/src/main/java/de/juplo/kafka/ApplicationConfiguration.java @@ -26,7 +26,7 @@ public class ApplicationConfiguration kafkaProducer); } - @Bean(destroyMethod = "close") + @Bean public KafkaProducer kafkaProducer(ApplicationProperties properties) { Properties props = new Properties();