devxlogo

Return a MappingJacksonValue from a REST Controller

Return a MappingJacksonValue from a REST Controller

A proof of concept can be seen below:

@GetMapping("...")public MappingJacksonValue fooMethod(...)             throws JsonProcessingException {   List foos = ...;   MappingJacksonValue wrapper = new MappingJacksonValue(fooa);   ...   return wrapper;}

devx-admin

Share the Post: