X-Git-Url: https://juplo.de/gitweb/?a=blobdiff_plain;f=transfer%2Fsrc%2Fmain%2Fjava%2Fde%2Fjuplo%2Fkafka%2Fpayment%2Ftransfer%2FTransferServiceProperties.java;h=ccd22a33d91d328ff1cec638112b030472efd400;hb=abea9b5c5ff90b2db1ab7bd577d644c05a4dd37f;hp=8a5000137246672c68232313e8dcda869df2ee30;hpb=178ce6ffc044415eb00f250aed2f9b1999bd47d1;p=demos%2Fkafka%2Fdemos-kafka-payment-system-transfer diff --git a/transfer/src/main/java/de/juplo/kafka/payment/transfer/TransferServiceProperties.java b/transfer/src/main/java/de/juplo/kafka/payment/transfer/TransferServiceProperties.java index 8a50001..ccd22a3 100644 --- a/transfer/src/main/java/de/juplo/kafka/payment/transfer/TransferServiceProperties.java +++ b/transfer/src/main/java/de/juplo/kafka/payment/transfer/TransferServiceProperties.java @@ -1,55 +1,16 @@ package de.juplo.kafka.payment.transfer; +import lombok.Getter; +import lombok.Setter; import org.springframework.boot.context.properties.ConfigurationProperties; -@ConfigurationProperties("take-order") +@ConfigurationProperties("juplo.transfer") +@Getter +@Setter public class TransferServiceProperties { - String bootstrapServers = "kafka:9092"; - String schemaRegistryUrl = "http://schema-registry:8081"; - String topic = "orders"; - String path = "http://details:8092/orders/"; - - - public String getBootstrapServers() - { - return bootstrapServers; - } - - public void setBootstrapServers(String bootstrapServers) - { - this.bootstrapServers = bootstrapServers; - } - - public String getSchemaRegistryUrl() - { - return schemaRegistryUrl; - } - - public void setSchemaRegistryUrl(String schemaRegistryUrl) - { - this.schemaRegistryUrl = schemaRegistryUrl; - } - - public String getTopic() - { - return topic; - } - - public void setTopic(String topic) - { - this.topic = topic; - } - - public String getPath() - { - return path; - } - - public void setPath(String path) - { - this.path = path; - } + String bootstrapServers = "localhost:9092"; + String topic = "transfers"; }