Spring Boot - Exception Handling
Consider this Spring Boot controller method:
@PostMapping("/register")
public ResponseEntity registerUser(@Valid @RequestBody User user) {
return ResponseEntity.ok("Registration successful");
}
If the User object has a @NotBlank field 'email' and the client sends an empty email, what will the HTTP response contain?