Follow this :
@RequestMapping(value = {"/abcd/id={id}","/abcd?id={id}"}, method = RequestMethod.GET)
public ModelAndView test(@PathVariable(“id”) String id) {
I have specified two type of values above in my code. former works fine when we call the uri but later is not getting identified (i.e.) @RequestMapping is not identifying ?(question mark)
as part of parameter passed.
You should get params on URL using
@RequestParamas a method parameter.