Spring Boot - REST Controllers
Identify the error in this method:
When called with URL
@GetMapping("/user")
public String getUser(@RequestParam int id, @RequestParam String name) {
return name + " with ID " + id;
}When called with URL
/user?id=5, what happens?