RequestMapping is not identifying ?(question mark) as part of parameter passed with java REST Call
spring-mvc
Solution
You should get params on URL using `@RequestParam` as a method parameter.
@RequestMapping(value = "/abcd", method = RequestMethod.GET)
public void test(@RequestParam String id) {
// your code here
}
Problem
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.