mirror of
https://github.com/datahub-project/datahub.git
synced 2025-11-03 12:16:10 +00:00
add default KAFKA_BOOTSTRAP_SERVER (#1893)
Co-authored-by: Liangjun <liajiang@expediagroup.com>
This commit is contained in:
parent
821bce7d69
commit
6bb5d24c35
@ -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}")
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user