Answers for "different request parameters for the same endpoint kotlin spring"

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 "different request parameters for the same endpoint kotlin spring"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language