Answers for "@getmapping with multiple parameters"

2

spring mvc get all request parameters

@RequestMapping(value = {"/search/", "/search"}, method = RequestMethod.GET)
public String search(@RequestParam Map<String,String> allRequestParams) {
   return "viewName";
}
Posted by: Guest on July-08-2020
0

spring boot param object

@RequestMapping("/{someID}")
public @ResponseBody int getAttr(@PathVariable(value="someID") String id, 
                                 @RequestParam String someAttr) {
}
Posted by: Guest on December-22-2020

Code answers related to "@getmapping with multiple parameters"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language