The serialization view specified in the annotation will be passed in to the {@code MappingJackson2HttpMessageConverter} which will then use it toserialize the response body with.
Note that despite {@code @JsonView} allowing for more than one class tobe specified, the use for a response body advice is only supported with exactly one class argument. Consider the use of a composite interface. @author Rossen Stoyanchev @since 4.1 @see com.fasterxml.jackson.databind.ObjectMapper#writerWithView(Class)
|
|
|
|