let ages = [11, 21, 31]; $.ajax({ url: "/search/person/by-age", type : 'POST', data : {ages : ages} }).done((res) => { console.log(res) } @RequestMapping(value = "/search/person/by-age", method = RequestMethod.POST) @ResponseBody public List<Person> getPeopleByAge(@RequestParam("ages[]") List<Long> itemIds) { // TODO... }