Skip to content

Commit ea97fef

Browse files
committed
Merge branch '5.1.x'
2 parents 4000b24 + bd568ea commit ea97fef

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/docs/asciidoc/web/webflux-functional.adoc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,15 @@ URI location = ...
164164
ServerResponse.created(location).build();
165165
----
166166

167+
Depending on the codec used, it is possible to pass hint parameters to customize how the
168+
body is serialized or deserialized. For example, to specify a https://wiki.fasterxml.com/JacksonJsonViews[Jackson JSON view]:
169+
170+
====
171+
[source,java]
172+
----
173+
ServerResponse.ok().hint(Jackson2CodecSupport.JSON_VIEW_HINT, MyJacksonView.class).body(...);
174+
----
175+
====
167176

168177

169178
[[webflux-fn-handler-classes]]

0 commit comments

Comments
 (0)