- <init>
Construct a new MappingJackson2HttpMessageConverter with a custom ObjectMapper.
You can use Jackson2
- setObjectMapper
Set the ObjectMapper for this view. If not set, a default
ObjectMapper#ObjectMapper() is used.Settin
- getObjectMapper
Return the underlying ObjectMapper for this view.
- setSupportedMediaTypes
- setPrettyPrint
- canWrite
- write
- writeInternal
- canRead
- read
- setJsonPrefix
Specify a custom prefix to use for this view's JSON output. Default is none.
- getJavaType
Return the Jackson JavaType for the specified class.The default implementation
returns ObjectMapper#