Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

param query spring boot

@PostMapping("/api/foos")
@ResponseBody
public String addFoo(@RequestParam(name = "id") String fooId, @RequestParam(name = "name") String name) { 
    return "ID: " + fooId + " Name: " + name;
}
Source by www.baeldung.com #
 
PREVIOUS NEXT
Tagged: #param #query #spring #boot
ADD COMMENT
Topic
Name
8+6 =