streams - Übungen - Microservices - Schritt 01
[demos/microservices] / take-order / src / main / java / de / trion / microservices / takeorder / ApplicationProperties.java
1 package de.trion.microservices.takeorder;
2
3
4 import org.springframework.boot.context.properties.ConfigurationProperties;
5
6
7 @ConfigurationProperties("take-order")
8 public class ApplicationProperties
9 {
10   String bootstrapServers = "kafka:9092";
11   String schemaRegistryUrl = "http://schema-registry:8081";
12   String topic = "orders";
13   String path = "http://details:8092/orders/";
14
15
16   public String getBootstrapServers()
17   {
18     return bootstrapServers;
19   }
20
21   public void setBootstrapServers(String bootstrapServers)
22   {
23     this.bootstrapServers = bootstrapServers;
24   }
25
26   public String getSchemaRegistryUrl()
27   {
28     return schemaRegistryUrl;
29   }
30
31   public void setSchemaRegistryUrl(String schemaRegistryUrl)
32   {
33     this.schemaRegistryUrl = schemaRegistryUrl;
34   }
35
36   public String getTopic()
37   {
38     return topic;
39   }
40
41   public void setTopic(String topic)
42   {
43     this.topic = topic;
44   }
45
46   public String getPath()
47   {
48     return path;
49   }
50
51   public void setPath(String path)
52   {
53     this.path = path;
54   }
55 }