From 81a4e59cbaf35263a23f3d8a0cf8c9c7bdae9dc4 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 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/de/juplo/kafka/ApplicationProperties.java b/src/main/java/de/juplo/kafka/ApplicationProperties.java index 0773e2f..ce53273 100644 --- a/src/main/java/de/juplo/kafka/ApplicationProperties.java +++ b/src/main/java/de/juplo/kafka/ApplicationProperties.java @@ -5,11 +5,13 @@ import jakarta.validation.constraints.NotNull; import lombok.Getter; import lombok.Setter; import org.springframework.boot.context.properties.ConfigurationProperties; +import org.springframework.validation.annotation.Validated; import java.time.Duration; @ConfigurationProperties(prefix = "producer") +@Validated @Getter @Setter public class ApplicationProperties -- 2.20.1