add default KAFKA_BOOTSTRAP_SERVER (#1893)

Co-authored-by: Liangjun <liajiang@expediagroup.com>
This commit is contained in:
Liangjun Jiang 2020-09-25 21:55:48 -05:00 committed by GitHub
parent 821bce7d69
commit 6bb5d24c35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -18,7 +18,7 @@ import org.springframework.context.annotation.Configuration;
@EnableConfigurationProperties(KafkaProperties.class)
public class KafkaEventProducerFactory {
@Value("${KAFKA_BOOTSTRAP_SERVER}")
@Value("${KAFKA_BOOTSTRAP_SERVER:http://localhost:9092}")
private String kafkaBootstrapServers;
@Value("${KAFKA_SCHEMAREGISTRY_URL:http://localhost:8081}")

View File

@ -20,7 +20,7 @@ import org.springframework.kafka.core.DefaultKafkaConsumerFactory;
@Slf4j
@Configuration
public class KafkaConfig {
@Value("${KAFKA_BOOTSTRAP_SERVER}")
@Value("${KAFKA_BOOTSTRAP_SERVER:http://localhost:9092}")
private String kafkaBootstrapServer;
@Value("${KAFKA_SCHEMAREGISTRY_URL:http://localhost:8081}")
private String kafkaSchemaRegistryUrl;

View File

@ -25,7 +25,7 @@ import org.springframework.kafka.listener.ErrorHandler;
@Slf4j
@Configuration
public class KafkaConfig {
@Value("${KAFKA_BOOTSTRAP_SERVER}")
@Value("${KAFKA_BOOTSTRAP_SERVER:http://localhost:9092}")
private String kafkaBootstrapServers;
@Value("${KAFKA_SCHEMAREGISTRY_URL:http://localhost:8081}")
private String kafkaSchemaRegistryUrl;