From db43887d773b98bd6db4022579e6990ce53e8ef9 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Mon, 28 Oct 2024 09:07:06 +0100 Subject: [PATCH] Validierung der Properties aktiviert --- src/main/java/de/juplo/kafka/ApplicationProperties.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/de/juplo/kafka/ApplicationProperties.java b/src/main/java/de/juplo/kafka/ApplicationProperties.java index 4bf66a8..af663db 100644 --- a/src/main/java/de/juplo/kafka/ApplicationProperties.java +++ b/src/main/java/de/juplo/kafka/ApplicationProperties.java @@ -5,10 +5,11 @@ import jakarta.validation.constraints.NotNull; import lombok.Getter; import lombok.Setter; import org.springframework.boot.context.properties.ConfigurationProperties; - +import org.springframework.validation.annotation.Validated; @ConfigurationProperties(prefix = "producer") +@Validated @Getter @Setter public class ApplicationProperties -- 2.20.1