From 4965203a21962b033c61b1d171b4b535b157cd43 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Thu, 26 Sep 2024 14:17:13 +0200 Subject: [PATCH] Spring-Boot findet entsprechend benannte Methoden automatisch --- src/main/java/de/juplo/kafka/ApplicationConfiguration.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- 2.20.1