Answers for "How to pass how to add two request Parameters"

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 "How to pass how to add two request Parameters"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language