WIP:streams - Übungen - Microservices - Schritt 02 -- Details-Service für Order-Auftr...
[demos/microservices] / details / src / main / java / de / trion / microservices / details / ApplicationProperties.java
1 package de.trion.microservices.details;
2
3
4 import org.springframework.boot.context.properties.ConfigurationProperties;
5
6
7 @ConfigurationProperties("details")
8 public class ApplicationProperties
9 {
10   String bootstrapServers = "kafka:9092";
11   String schemaRegistryUrl = "http://schema-registry:8081";
12   String topic = "orders";
13   String applicationServer = "details:8092";
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 getApplicationServer()
47   {
48     return applicationServer;
49   }
50
51   public void setApplicationServer(String applicationServer)
52   {
53     this.applicationServer = applicationServer;
54   }
55 }