WIP
[demos/kafka/demos-kafka-payment-system-transfer] / transfer / src / main / java / de / juplo / kafka / payment / transfer / TransferServiceProperties.java
index 8a50001..bea701f 100644 (file)
@@ -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/";
 }