Skip to content

Commit b7b8d85

Browse files
committed
Update reference for MediaType constants.
Issue: SPR-13531
1 parent ac975df commit b7b8d85

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/asciidoc/web-mvc.adoc

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1059,7 +1059,9 @@ media type. For example:
10591059
----
10601060

10611061
Consumable media type expressions can also be negated as in __!text/plain__ to match to
1062-
all requests other than those with __Content-Type__ of __text/plain__.
1062+
all requests other than those with __Content-Type__ of __text/plain__. Also consider
1063+
using constants provided in `MediaType` such as `APPLICATION_JSON_VALUE` and
1064+
`APPLICATION_JSON_UTF8_VALUE`.
10631065

10641066
[TIP]
10651067
====
@@ -1099,7 +1101,8 @@ the `UTF-8` charset.
10991101

11001102
Just like with __consumes__, producible media type expressions can be negated as in
11011103
__!text/plain__ to match to all requests other than those with an __Accept__ header
1102-
value of __text/plain__.
1104+
value of __text/plain__. Also consider using constants provided in `MediaType` such
1105+
as `APPLICATION_JSON_VALUE` and `APPLICATION_JSON_UTF8_VALUE`.
11031106

11041107
[TIP]
11051108
====

0 commit comments

Comments
 (0)