1 package de.trion.microservices.validateorder;
4 import org.springframework.boot.context.properties.ConfigurationProperties;
7 @ConfigurationProperties("take-order")
8 public class ApplicationProperties
10 String bootstrapServers = "kafka:9092";
11 String schemaRegistryUrl = "http://schema-registry:8081";
12 String ordersTopic = "orders";
13 String validationTopic = "validation";
16 public String getBootstrapServers()
18 return bootstrapServers;
21 public void setBootstrapServers(String bootstrapServers)
23 this.bootstrapServers = bootstrapServers;
26 public String getSchemaRegistryUrl()
28 return schemaRegistryUrl;
31 public void setSchemaRegistryUrl(String schemaRegistryUrl)
33 this.schemaRegistryUrl = schemaRegistryUrl;
36 public String getOrdersTopic()
41 public void setOrdersTopic(String topic)
43 this.ordersTopic = topic;
46 public String getValidationTopic()
48 return validationTopic;
51 public void setValidationTopic(String topic)
53 this.validationTopic = topic;