Spring Boot - Request and Response Handling
Given this controller method:
@PostMapping("/users")
public ResponseEntity createUser(@Valid @RequestBody UserDto user) {
return ResponseEntity.ok("User created");
}
What happens if the client sends a request with an empty required field in UserDto?