Check out example codes for "spring url parameter". It will help you in understanding the concepts better.

Code Example 1

@RequestMapping("/{someID}")
public @ResponseBody int getAttr(@PathVariable(value="someID") String id, 
                                 @RequestParam String someAttr) {
}

Code Example 2

@RequestMapping(value = {"/search/", "/search"}, method = RequestMethod.GET)
public String search(@RequestParam Map<String,String> allRequestParams) {
   return "viewName";
}

Learn ReactJs, React Native from akashmittal.com