I have a controller annotated as @RestController, so it automatically add @ResponseBody to all methods annotated with @RequestMapping. But if I use @ExceptionHandler annotation and return some response:
@ExceptionHandler
public @ResponseBody Response someHandler(Exception ex) { ... }
Can I remove @ResponseBody from handler? And If I use @ControllerAdvice is it possible to remove @ResponseBody annotation from it's handlers?