Spring Boot - REST Controllers
Given this method in a Spring Boot controller:
What will be the response body when a PUT request is sent to
@PutMapping("/users/{id}")
public ResponseEntity updateUser(@PathVariable int id, @RequestBody User user) {
return ResponseEntity.ok("User " + id + " updated");
} What will be the response body when a PUT request is sent to
/users/5?