|
|
@ -2789,7 +2789,7 @@ Spring offers support for the Jackson JSON library. |
|
|
|
[.small]#<<web-reactive.adoc#webflux-ann-jsonview, Same as in Spring WebFlux>># |
|
|
|
[.small]#<<web-reactive.adoc#webflux-ann-jsonview, Same as in Spring WebFlux>># |
|
|
|
|
|
|
|
|
|
|
|
Spring MVC provides built-in support for |
|
|
|
Spring MVC provides built-in support for |
|
|
|
https://wiki.fasterxml.com/JacksonJsonViews[Jackson's Serialization Views], |
|
|
|
https://www.baeldung.com/jackson-json-view-annotation[Jackson's Serialization Views], |
|
|
|
which allow rendering only a subset of all fields in an `Object`. To use it with |
|
|
|
which allow rendering only a subset of all fields in an `Object`. To use it with |
|
|
|
`@ResponseBody` or `ResponseEntity` controller methods, you can use Jackson's |
|
|
|
`@ResponseBody` or `ResponseEntity` controller methods, you can use Jackson's |
|
|
|
`@JsonView` annotation to activate a serialization view class, as the following example shows: |
|
|
|
`@JsonView` annotation to activate a serialization view class, as the following example shows: |
|
|
|