I have rest from Spring Boot v. 4.1 and want to compress the response with gzip for example. Could you help me please?
The code looks like:
@RestController
@RequestMapping("/api/")
@RequestMapping(value = "/id/{id}", method = RequestMethod.GET)
I tried to add “produces” parameter into @RequestMapping
but does not know which value format is correct for that. Is it possible to compress response by this way?
produces = {APPLICATION_XML_VALUE}