Skip to content

Commit 91507a9

Browse files
pat-goinsgaryrussell
authored andcommitted
Update config example type in doc
Examples show `KafkaTemplate<Integer, String>` and `ProducerFactory<Integer, String>`, but sample config had `ProducerConfig.KEY_SERIALIZER_CLASS_CONFIG` set as `StringSerializer.class`
1 parent c69791e commit 91507a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-kafka-docs/src/main/asciidoc/kafka.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ public ProducerFactory<Integer, String> producerFactory() {
250250
public Map<String, Object> producerConfigs() {
251251
Map<String, Object> props = new HashMap<>();
252252
props.put(ProducerConfig.BOOTSTRAP_SERVERS_CONFIG, "localhost:9092");
253-
props.put(ProducerConfig.KEY_SERIALIZER_CLASS_CONFIG, StringSerializer.class);
253+
props.put(ProducerConfig.KEY_SERIALIZER_CLASS_CONFIG, IntegerSerializer.class);
254254
props.put(ProducerConfig.VALUE_SERIALIZER_CLASS_CONFIG, StringSerializer.class);
255255
// See https://kafka.apache.org/documentation/#producerconfigs for more properties
256256
return props;

0 commit comments

Comments
 (0)