Answers for "postmapping multiple params"

0

postmapping mulitple params same name in spring boot

@RequestMapping(value="/params", method = RequestMethod.GET)
public ResponseEntity getParams(@RequestParam Map<String, String> params ) {

   System.out.println(params.keySet());
   System.out.println(params.values());

   return new ResponseEntity<String>("ok", HttpStatus.OK);
}
Posted by: Guest on July-21-2020

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language