Add option to set Content-Length in JSON Views

MappingJackson2JsonView and MappingJacksonJsonView now provide an
option that will set the Content-Length header of JSON responses.
Use of the option implies buffering of the response and it must be
enabled explicitly.

Issue: SPR-7866
This commit is contained in:
Rossen Stoyanchev
2012-05-15 18:06:14 -04:00
parent 2017b24867
commit 01a9dd9772
5 changed files with 53 additions and 9 deletions

View File

@@ -25,7 +25,8 @@ Changes in version 3.2 M1
* support access to all URI vars via @PathVariable Map<String, String>
* add "excludedExceptions" property to SimpleUrlHandlerMapping
* add CompositeRequestCondition for use with multiple custom request mapping conditions
* add option to configure custom MessageCodesResolver through WebMvcConfigurer
* add ability to configure custom MessageCodesResolver through the MVC Java config
* add option in MappingJacksonJsonView for setting the Content-Length header
Changes in version 3.1.1 (2012-02-16)
-------------------------------------