Spring Boot - REST Controllers
Given the following Spring Boot controller method, what will happen when a PUT request is sent to
/users/5 with a valid JSON body?@PutMapping("/users/{id}")
public User updateUser(@PathVariable int id, @RequestBody User user) {
user.setId(id);
return userService.save(user);
}