Browse Source

Update JsonView advices Javadoc

Make the documentation relevant for all Jackson converters.
pull/36115/head
Sébastien Deleuze 3 weeks ago
parent
commit
d85ac300bb
  1. 3
      spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/JsonViewRequestBodyAdvice.java
  2. 3
      spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/JsonViewResponseBodyAdvice.java

3
spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/JsonViewRequestBodyAdvice.java

@ -39,8 +39,7 @@ import org.springframework.util.Assert; @@ -39,8 +39,7 @@ import org.springframework.util.Assert;
* or {@code @RequestBody} method parameter.
*
* <p>The deserialization view specified in the annotation will be passed in to the
* {@link org.springframework.http.converter.json.MappingJackson2HttpMessageConverter}
* which will then use it to deserialize the request body with.
* Jackson converters which will then use it to deserialize the request body with.
*
* <p>Note that despite {@code @JsonView} allowing for more than one class to
* be specified, the use for a request body advice is only supported with

3
spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/JsonViewResponseBodyAdvice.java

@ -36,8 +36,7 @@ import org.springframework.util.Assert; @@ -36,8 +36,7 @@ import org.springframework.util.Assert;
* or {@code @ExceptionHandler} method.
*
* <p>The serialization view specified in the annotation will be passed in to the
* {@link org.springframework.http.converter.json.MappingJackson2HttpMessageConverter}
* which will then use it to serialize the response body.
* Jackson converters which will then use it to serialize the response body.
*
* <p>Note that despite {@code @JsonView} allowing for more than one class to
* be specified, the use for a response body advice is only supported with

Loading…
Cancel
Save