propertyMap.put(StreamsConfig.DEFAULT_KEY_SERDE_CLASS_CONFIG, JsonSerde.class.getName());
propertyMap.put(StreamsConfig.DEFAULT_VALUE_SERDE_CLASS_CONFIG, JsonSerde.class.getName());
- propertyMap.put(
- JsonDeserializer.TYPE_MAPPINGS,
- "user:" + User.class.getName() + "," +
- "word:" + Word.class.getName() + "," +
- "counter:" + WordCounter.class.getName());
+ propertyMap.put(JsonDeserializer.TRUSTED_PACKAGES, CounterApplication.class.getPackageName());
return propertyMap;
}