From d85ac300bb88f55119a0a4571e8c2bdfa96e6095 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Deleuze?= Date: Thu, 8 Jan 2026 16:09:47 +0100 Subject: [PATCH] Update JsonView advices Javadoc Make the documentation relevant for all Jackson converters. --- .../mvc/method/annotation/JsonViewRequestBodyAdvice.java | 3 +-- .../mvc/method/annotation/JsonViewResponseBodyAdvice.java | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/JsonViewRequestBodyAdvice.java b/spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/JsonViewRequestBodyAdvice.java index 6bf57a1fa04..a4389b52205 100644 --- a/spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/JsonViewRequestBodyAdvice.java +++ b/spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/JsonViewRequestBodyAdvice.java @@ -39,8 +39,7 @@ import org.springframework.util.Assert; * or {@code @RequestBody} method parameter. * *

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. * *

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 diff --git a/spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/JsonViewResponseBodyAdvice.java b/spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/JsonViewResponseBodyAdvice.java index f066b786e26..c14345c1ded 100644 --- a/spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/JsonViewResponseBodyAdvice.java +++ b/spring-webmvc/src/main/java/org/springframework/web/servlet/mvc/method/annotation/JsonViewResponseBodyAdvice.java @@ -36,8 +36,7 @@ import org.springframework.util.Assert; * or {@code @ExceptionHandler} method. * *

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. * *

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