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>
Tue, 29 Oct 2024 17:06:38 +0000 (18:06 +0100)
src/main/java/de/juplo/kafka/ApplicationProperties.java

index 4bf66a8..af663db 100644 (file)
@@ -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