How to filter attributes from JSON response in spring?
问题 I have a controller like the following, @RequestMapping(value = "rest/v1/tester") public class TestController { @RequestMapping(value = "/search", method = RequestMethod.GET) public ResponseEntity<SampleResults> search(@ModelAttribute("criteria")SampleCriteria criteria) throws Exception { SampleResults sampleResults = sampleService.search(criteria); return new ResponseEntity<>(sampleResults, OK); } } I have another controller like so, @RequestMapping(value = "rest/v1/second") public class