Improve documentation about deprecation for APPLICATION_JSON[-VALUE] but for programmatic clients #28859
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
status: invalid
An issue that we don't feel is valid
Uh oh!
There was an error while loading. Please reload this page.
Affects: 5 and 6
Currently about MediaType javadoc - for
APPLICATION_JSON_UTF8
andAPPLICATION_JSON_UTF8_VALUE
- both are deprecated according with the following description for each one respectively:Even assuming if this situation applies perfectly to all the web browsers around the globe
RestTemplate
Because my native speaking is Spanish - is normal have data with
ñ
and others such asé á ó
Therefore was normal use
APPLICATION_JSON_UTF8
orAPPLICATION_JSON_UTF8_VALUE
according the case at:@Controller
- either@RequestMapping
- or@GetMapping
with the produces attribute and@PostMapping/@PutMapping
with the consumes attribute - where is possible useMediaType
RestTemplate
programmatic configuration through RequestEntity.HeadersBuilder withaccept(MediaType... acceptableMediaTypes)
and ResponseEntity.BodyBuilder withcontentType(MediaType contentType)
.So is not clear how now should be configured UTF-8 to be handle/support by programmatic clients for rest.
The text was updated successfully, but these errors were encountered: