Skip to content

Commit

Permalink
Update serdes.adoc
Browse files Browse the repository at this point in the history
Correct class naming convention for 'hat' in serializer/deserializer configurations
  • Loading branch information
selllami authored Mar 7, 2024
1 parent 29f8d18 commit 0dce7a1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,10 @@ The following example creates a set of mappings:
[source, java]
----
senderProps.put(ProducerConfig.VALUE_SERIALIZER_CLASS_CONFIG, JsonSerializer.class);
senderProps.put(JsonSerializer.TYPE_MAPPINGS, "cat:com.mycat.Cat, hat:com.myhat.hat");
senderProps.put(JsonSerializer.TYPE_MAPPINGS, "cat:com.mycat.Cat, hat:com.myhat.Hat");
...
consumerProps.put(ConsumerConfig.VALUE_DESERIALIZER_CLASS_CONFIG, JsonDeserializer.class);
consumerProps.put(JsonDeSerializer.TYPE_MAPPINGS, "cat:com.yourcat.Cat, hat:com.yourhat.hat");
consumerProps.put(JsonDeSerializer.TYPE_MAPPINGS, "cat:com.yourcat.Cat, hat:com.yourhat.Hat");
----

IMPORTANT: The corresponding objects must be compatible.
Expand Down

0 comments on commit 0dce7a1

Please sign in to comment.