props.put(
JsonDeserializer.TYPE_MAPPINGS,
"word:" + Key.class.getName() + "," +
- "counter:" + Counter.class.getName());
+ "counter:" + Entry.class.getName());
props.put(JsonDeserializer.REMOVE_TYPE_INFO_HEADERS, Boolean.FALSE);
props.put(
- JsonDeserializer.TYPE_MAPPINGS,
+ JsonSerializer.TYPE_MAPPINGS,
"ranking:" + Ranking.class.getName());
props.put(ConsumerConfig.AUTO_OFFSET_RESET_CONFIG, "earliest");