Validierung der Properties aktiviert
authorKai Moritz <kai@juplo.de>
Mon, 28 Oct 2024 08:07:06 +0000 (09:07 +0100)
committerKai Moritz <kai@juplo.de>
Fri, 8 Nov 2024 17:05:08 +0000 (18:05 +0100)
src/main/java/de/juplo/kafka/ApplicationProperties.java

index 0773e2f..ce53273 100644 (file)
@@ -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