public final class JacksonUtils
extends java.lang.Object
ObjectMapper
instances.Modifier and Type | Method and Description |
---|---|
static com.fasterxml.jackson.databind.ObjectMapper |
enhancedObjectMapper()
Factory for
ObjectMapper instances with registered well-known modules
and disabled MapperFeature.DEFAULT_VIEW_INCLUSION and
DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES features. |
static com.fasterxml.jackson.databind.ObjectMapper |
enhancedObjectMapper(java.lang.ClassLoader classLoader)
Factory for
ObjectMapper instances with registered well-known modules
and disabled MapperFeature.DEFAULT_VIEW_INCLUSION and
DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES features. |
public static com.fasterxml.jackson.databind.ObjectMapper enhancedObjectMapper()
ObjectMapper
instances with registered well-known modules
and disabled MapperFeature.DEFAULT_VIEW_INCLUSION
and
DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES
features.
The ClassUtils.getDefaultClassLoader()
is used for loading module classes.ObjectMapper
instance.public static com.fasterxml.jackson.databind.ObjectMapper enhancedObjectMapper(java.lang.ClassLoader classLoader)
ObjectMapper
instances with registered well-known modules
and disabled MapperFeature.DEFAULT_VIEW_INCLUSION
and
DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES
features.classLoader
- the ClassLoader
for modules to register.ObjectMapper
instance.