|
|
@ -74,14 +74,14 @@ public class KafkaAutoConfiguration {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Bean
|
|
|
|
@Bean
|
|
|
|
@ConditionalOnMissingBean(ProducerListener.class)
|
|
|
|
@ConditionalOnMissingBean(LoggingProducerListener.class)
|
|
|
|
public ProducerListener<Object, Object> kafkaProducerListener() {
|
|
|
|
public LoggingProducerListener<Object, Object> kafkaProducerListener() {
|
|
|
|
return new LoggingProducerListener<>();
|
|
|
|
return new LoggingProducerListener<>();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Bean
|
|
|
|
@Bean
|
|
|
|
@ConditionalOnMissingBean(ConsumerFactory.class)
|
|
|
|
@ConditionalOnMissingBean(DefaultKafkaConsumerFactory.class)
|
|
|
|
public ConsumerFactory<?, ?> kafkaConsumerFactory(
|
|
|
|
public DefaultKafkaConsumerFactory<?, ?> kafkaConsumerFactory(
|
|
|
|
ObjectProvider<DefaultKafkaConsumerFactoryCustomizer> customizers) {
|
|
|
|
ObjectProvider<DefaultKafkaConsumerFactoryCustomizer> customizers) {
|
|
|
|
DefaultKafkaConsumerFactory<Object, Object> factory = new DefaultKafkaConsumerFactory<>(
|
|
|
|
DefaultKafkaConsumerFactory<Object, Object> factory = new DefaultKafkaConsumerFactory<>(
|
|
|
|
this.properties.buildConsumerProperties());
|
|
|
|
this.properties.buildConsumerProperties());
|
|
|
@ -90,8 +90,8 @@ public class KafkaAutoConfiguration {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Bean
|
|
|
|
@Bean
|
|
|
|
@ConditionalOnMissingBean(ProducerFactory.class)
|
|
|
|
@ConditionalOnMissingBean(DefaultKafkaProducerFactory.class)
|
|
|
|
public ProducerFactory<?, ?> kafkaProducerFactory(
|
|
|
|
public DefaultKafkaProducerFactory<?, ?> kafkaProducerFactory(
|
|
|
|
ObjectProvider<DefaultKafkaProducerFactoryCustomizer> customizers) {
|
|
|
|
ObjectProvider<DefaultKafkaProducerFactoryCustomizer> customizers) {
|
|
|
|
DefaultKafkaProducerFactory<?, ?> factory = new DefaultKafkaProducerFactory<>(
|
|
|
|
DefaultKafkaProducerFactory<?, ?> factory = new DefaultKafkaProducerFactory<>(
|
|
|
|
this.properties.buildProducerProperties());
|
|
|
|
this.properties.buildProducerProperties());
|
|
|
|