GH-1226: Update snippet to correct return type and misspelling
Fixes https://github.com/spring-projects/spring-kafka/issues/1226 # Conflicts: # src/reference/asciidoc/kafka.adoc
This commit is contained in:
@@ -2216,9 +2216,9 @@ public ConsumerFactory<Foo, Bar> kafkaConsumerFactory(KafkaProperties properties
|
||||
|
||||
@Bean
|
||||
public ProducererFactory<Foo, Bar> kafkaProducerFactory(KafkaProperties properties,
|
||||
JsonSserializer customSerializer) {
|
||||
JsonSerializer customSerializer) {
|
||||
|
||||
return new DefaultKafkaConsumerFactory<>(properties.buildProducerProperties(),
|
||||
return new DefaultKafkaProducerFactory<>(properties.buildProducerProperties(),
|
||||
customSerializer, customSerializer);
|
||||
}
|
||||
----
|
||||
|
||||
Reference in New Issue
Block a user