X-Git-Url: https://juplo.de/gitweb/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fde%2Fjuplo%2Fkafka%2FApplicationProperties.java;h=d0e694dfc470b17078b635ce7558a680298ee27c;hb=d0de5c9030e575251d62d2a207ede84cd881ccec;hp=673613a840f2768af3cb9cf04b6c8e7efb39e584;hpb=5bf794a0d2c7dd49c68161e941e1bd972a6af824;p=demos%2Fkafka%2Ftraining diff --git a/src/main/java/de/juplo/kafka/ApplicationProperties.java b/src/main/java/de/juplo/kafka/ApplicationProperties.java index 673613a..d0e694d 100644 --- a/src/main/java/de/juplo/kafka/ApplicationProperties.java +++ b/src/main/java/de/juplo/kafka/ApplicationProperties.java @@ -4,33 +4,11 @@ import lombok.Getter; import lombok.Setter; import org.springframework.boot.context.properties.ConfigurationProperties; -import javax.validation.constraints.NotEmpty; -import javax.validation.constraints.NotNull; - -@ConfigurationProperties(prefix = "producer") +@ConfigurationProperties(prefix = "sumup.gateway") @Getter @Setter public class ApplicationProperties { - @NotNull - @NotEmpty - private String bootstrapServer; - @NotNull - @NotEmpty - private String clientId; - @NotNull - @NotEmpty - private String topic; private Integer partition; - @NotNull - @NotEmpty - private String acks; - @NotNull - private Integer batchSize; - @NotNull - private Integer lingerMs; - @NotNull - @NotEmpty - private String compressionType; }