chore: 替换废弃的方法

This commit is contained in:
CaptainB 2023-12-21 13:36:20 +08:00 committed by 刘瑞斌
parent faafea471f
commit a587b7bcb5
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ public class KafkaConfig {
@Autowired @Autowired
public KafkaConfig(KafkaProperties kafkaProperties) { public KafkaConfig(KafkaProperties kafkaProperties) {
ProducerFactory<String, String> producerFactory = new DefaultKafkaProducerFactory<>(kafkaProperties.buildProducerProperties()); ProducerFactory<String, String> producerFactory = new DefaultKafkaProducerFactory<>(kafkaProperties.buildProducerProperties(null));
defaultMap = producerFactory.getConfigurationProperties(); defaultMap = producerFactory.getConfigurationProperties();
} }