import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
-@ConfigurationProperties(prefix = "producer")
+import javax.validation.constraints.NotEmpty;
+import javax.validation.constraints.NotNull;
+
+
+@ConfigurationProperties(prefix = "sumup.gateway")
@Getter
@Setter
public class ApplicationProperties
{
- private String bootstrapServer;
- private String clientId;
+ @NotNull
+ @NotEmpty
private String topic;
- private String acks;
- private Integer batchSize;
- private Integer lingerMs;
- private String compressionType;
+ private Integer partition;
}