0

I have a method as below

@RequestMapping("/someUrl")
public void setup(@RequstParam("name") String name, @RequstParam("desc") String desc) {
    ....
}

Can i get a list of the @RequestParam in the method when calling the method from javascript without losing the original function of the method?

In response to the comments, I want to get a list of the parameters needed in the url to call that method. e.g. i want to call some method that returns a javascript array/object with "name" and "desc" in it (e.g. ["name","desc"].

user3206236
  • 315
  • 5
  • 14

0 Answers0