Class JacksonUtils
- java.lang.Object
-
- org.springframework.kafka.support.JacksonUtils
-
public final class JacksonUtils extends java.lang.Object
The utilities for JacksonObjectMapper
instances.- Since:
- 2.3
- Author:
- Artem Bilan
-
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static com.fasterxml.jackson.databind.ObjectMapper
enhancedObjectMapper()
Factory forObjectMapper
instances with registered well-known modules and disabledMapperFeature.DEFAULT_VIEW_INCLUSION
andDeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES
features.static com.fasterxml.jackson.databind.ObjectMapper
enhancedObjectMapper(java.lang.ClassLoader classLoader)
Deprecated.since 2.7.5 in favor ofenhancedObjectMapper()
-
-
-
Method Detail
-
enhancedObjectMapper
public static com.fasterxml.jackson.databind.ObjectMapper enhancedObjectMapper()
Factory forObjectMapper
instances with registered well-known modules and disabledMapperFeature.DEFAULT_VIEW_INCLUSION
andDeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES
features.- Returns:
- the
ObjectMapper
instance.
-
enhancedObjectMapper
@Deprecated public static com.fasterxml.jackson.databind.ObjectMapper enhancedObjectMapper(java.lang.ClassLoader classLoader)
Deprecated.since 2.7.5 in favor ofenhancedObjectMapper()
Factory forObjectMapper
instances with registered well-known modules and disabledMapperFeature.DEFAULT_VIEW_INCLUSION
andDeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES
features.- Parameters:
classLoader
- theClassLoader
for modules to register.- Returns:
- the
ObjectMapper
instance.
-
-