Update apache-kafka-2/src/main/java/com/baeldung/kafka/message/ordering/serialization/JacksonSerializer.java
Co-authored-by: Liam Williams <liam.williams@zoho.com>
This commit is contained in:
parent
836c977fde
commit
540da8c779
|
@ -3,6 +3,10 @@ package com.baeldung.kafka.message.ordering.serialization;
|
|||
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
import org.apache.kafka.common.serialization.Serializer;
|
||||
|
||||
/**
|
||||
* Configured via {@link org.apache.kafka.clients.producer.ProducerConfig#VALUE_SERIALIZER_CLASS_CONFIG}
|
||||
*/
|
||||
@SuppressWarnings("unused")
|
||||
public class JacksonSerializer<T> implements Serializer<T> {
|
||||
private final ObjectMapper objectMapper = new ObjectMapper();
|
||||
|
||||
|
|
Loading…
Reference in New Issue