streams - Übungen - Microservices - Schritt 02
[demos/microservices] / details / src / main / java / de / trion / microservices / details / ApplicationProperties.java
diff --git a/details/src/main/java/de/trion/microservices/details/ApplicationProperties.java b/details/src/main/java/de/trion/microservices/details/ApplicationProperties.java
new file mode 100644 (file)
index 0000000..306f161
--- /dev/null
@@ -0,0 +1,55 @@
+package de.trion.microservices.details;
+
+
+import org.springframework.boot.context.properties.ConfigurationProperties;
+
+
+@ConfigurationProperties("details")
+public class ApplicationProperties
+{
+  String bootstrapServers = "kafka:9092";
+  String schemaRegistryUrl = "http://schema-registry:8081";
+  String topic = "orders";
+  String applicationServer = "details:8092";
+
+
+  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 getApplicationServer()
+  {
+    return applicationServer;
+  }
+
+  public void setApplicationServer(String applicationServer)
+  {
+    this.applicationServer = applicationServer;
+  }
+}