@RestController
@RequestMapping("")
public class IndexController {
@PostMapping("")
public void index(@RequestParam List<Long> ids){
System.out.println(ids);
}
}
curl --request POST --url 'http://localhost:8080/?ids=11&ids=22&ids=33'
curl --request POST --url 'http://localhost:8080/?ids=11'