From: Kai Moritz Date: Mon, 28 Oct 2024 08:07:06 +0000 (+0100) Subject: Validierung der Properties aktiviert X-Git-Tag: producer/spring-producer--2024-11-13--si~12 X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=81a4e59cbaf35263a23f3d8a0cf8c9c7bdae9dc4;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 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