From: Kai Moritz Date: Mon, 28 Oct 2024 08:07:06 +0000 (+0100) Subject: Validierung der Properties aktiviert X-Git-Tag: producer/spring-producer--fixedsharding--null~7 X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=db43887d773b98bd6db4022579e6990ce53e8ef9;p=demos%2Fkafka%2Ftraining Validierung der Properties aktiviert --- 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