I need to take two parameters in my spring controller.
http://mydomain.com/myapp/getDetails?Id=13&subId=431
I have controller which will return Json for this request.
@RequestMapping(value = "/getDetails", method = RequestMethod.GET,params = "id,subId", produces="application/json")
@ResponseBody
public MyBean getsubIds(@RequestParam String id, @RequestParam String subId) {
return MyBean
}
I am getting 400 for when i tried to invoke the URL. Any thoughts on this? I was able to get it with one parameter.