X-Git-Url: https://juplo.de/gitweb/?a=blobdiff_plain;f=transfer%2Fsrc%2Fmain%2Fjava%2Fde%2Fjuplo%2Fkafka%2Fpayment%2Ftransfer%2FTransferServiceProperties.java;h=bea701fc3035837c72d3d3f962cf487884e6912b;hb=192d9b20969fbbbe748430f2cb6e780916321287;hp=8a5000137246672c68232313e8dcda869df2ee30;hpb=4f564193aef1e81919d90fa638c1ce1490a78c07;p=demos%2Fkafka%2Fdemos-kafka-payment-system-setup 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..bea701f 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,17 @@ 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"; + String path = "http://details:8092/transfers/"; }