I am doing a simple \'get\' in JBoss/Spring. I want the client to pass me an array of integers in the url. How do I set that up on the server? And show should the client sen
Could do @PathVariable String ids, then parse the string.
So something like:
@RequestMapping(value="/test/{firstNameIds}", method=RequestMethod.GET)
@ResponseBody
public String test(@PathVariable String firstNameIds)
{
String[] ids = firstNameIds.split(",");
return "Dummy";
}
You'd pass in:
http://localhost:8080/public/test/1,3,4,50