|
|
@ -1,5 +1,5 @@
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|
* Copyright 2012-2020 the original author or authors.
|
|
|
|
* Copyright 2012-2022 the original author or authors.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
@ -67,7 +67,6 @@ public class KafkaAutoConfiguration {
|
|
|
|
public KafkaTemplate<?, ?> kafkaTemplate(ProducerFactory<Object, Object> kafkaProducerFactory,
|
|
|
|
public KafkaTemplate<?, ?> kafkaTemplate(ProducerFactory<Object, Object> kafkaProducerFactory,
|
|
|
|
ProducerListener<Object, Object> kafkaProducerListener,
|
|
|
|
ProducerListener<Object, Object> kafkaProducerListener,
|
|
|
|
ObjectProvider<RecordMessageConverter> messageConverter) {
|
|
|
|
ObjectProvider<RecordMessageConverter> messageConverter) {
|
|
|
|
|
|
|
|
|
|
|
|
PropertyMapper map = PropertyMapper.get().alwaysApplyingWhenNonNull();
|
|
|
|
PropertyMapper map = PropertyMapper.get().alwaysApplyingWhenNonNull();
|
|
|
|
KafkaTemplate<Object, Object> kafkaTemplate = new KafkaTemplate<>(kafkaProducerFactory);
|
|
|
|
KafkaTemplate<Object, Object> kafkaTemplate = new KafkaTemplate<>(kafkaProducerFactory);
|
|
|
|
messageConverter.ifUnique(kafkaTemplate::setMessageConverter);
|
|
|
|
messageConverter.ifUnique(kafkaTemplate::setMessageConverter);
|
|
|
|