Consider the following mapping:
@RequestMapping(value = \"/superDuperPage\", method = RequestMethod.GET)
public String superDuperPage(@RequestParam(value = \"som
An alternative
If you use the @ControllerAdvice on your class and if it extends the Spring base class ResponseEntityExceptionHandler. A pre-defined function has been created on the base class for this purpose. You have to override it in your handler.
@Override
protected ResponseEntity
This base class is very useful, especially if you want to process the validation errors that the framework creates.