From c7aac11b1daf122fff49df59458961bfdcd242ba Mon Sep 17 00:00:00 2001 From: Loes Immens Date: Tue, 3 Dec 2024 09:03:50 +0100 Subject: [PATCH] fix for spring boot 3.4.0 new behaviour Signed-off-by: Loes Immens --- .../kafka/message/signing/MessageSigningAutoConfiguration.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kafka-message-signing/src/main/kotlin/com/gxf/utilities/kafka/message/signing/MessageSigningAutoConfiguration.kt b/kafka-message-signing/src/main/kotlin/com/gxf/utilities/kafka/message/signing/MessageSigningAutoConfiguration.kt index c61a78a..fabb62a 100644 --- a/kafka-message-signing/src/main/kotlin/com/gxf/utilities/kafka/message/signing/MessageSigningAutoConfiguration.kt +++ b/kafka-message-signing/src/main/kotlin/com/gxf/utilities/kafka/message/signing/MessageSigningAutoConfiguration.kt @@ -12,9 +12,9 @@ import org.springframework.context.annotation.Configuration @Configuration @EnableConfigurationProperties(MessageSigningProperties::class) @ComponentScan("com.gxf.utilities.kafka.message.signing") -// Only instantiate when no other bean has been configured -@ConditionalOnMissingBean(MessageSigner::class) class MessageSigningAutoConfiguration { + // Only instantiate when no other bean has been configured + @ConditionalOnMissingBean @Bean fun messageSigner(signingProperties: MessageSigningProperties): MessageSigner { return MessageSigner(signingProperties)