Skip to content

Commit e3abc0e

Browse files
authored
Update serdes.adoc
Fixes: #3106 * Correct class naming convention for 'hat' in serializer/deserializer configurations
1 parent cd2ea4c commit e3abc0e

File tree

1 file changed

+2
-2
lines changed
  • spring-kafka-docs/src/main/antora/modules/ROOT/pages/kafka

1 file changed

+2
-2
lines changed

spring-kafka-docs/src/main/antora/modules/ROOT/pages/kafka/serdes.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,10 +138,10 @@ The following example creates a set of mappings:
138138
[source, java]
139139
----
140140
senderProps.put(ProducerConfig.VALUE_SERIALIZER_CLASS_CONFIG, JsonSerializer.class);
141-
senderProps.put(JsonSerializer.TYPE_MAPPINGS, "cat:com.mycat.Cat, hat:com.myhat.hat");
141+
senderProps.put(JsonSerializer.TYPE_MAPPINGS, "cat:com.mycat.Cat, hat:com.myhat.Hat");
142142
...
143143
consumerProps.put(ConsumerConfig.VALUE_DESERIALIZER_CLASS_CONFIG, JsonDeserializer.class);
144-
consumerProps.put(JsonDeSerializer.TYPE_MAPPINGS, "cat:com.yourcat.Cat, hat:com.yourhat.hat");
144+
consumerProps.put(JsonDeSerializer.TYPE_MAPPINGS, "cat:com.yourcat.Cat, hat:com.yourhat.Hat");
145145
----
146146

147147
IMPORTANT: The corresponding objects must be compatible.

0 commit comments

Comments
 (0)