I want to implement Kafka producer which sends and receives Java Serialized Objects. I tried this:
Producer:
@Configuration publi
KEY_DESERIALIZER_CLASS_CONFIG is a class which deserializes the network value into proper Java classes. The class you provided doesn't do that.
In most cases, StringDeserializer is used. Specify a proper deserializer to the factory properties.