Closed
Description
Describe the bug
The @ExceptionHandler methods inside a @RestController are picked up correctly if and only if there is at least one class present which is annotated with @RestControllerAdvice. This class might be empty, though.
To Reproduce
I created a fork of the master branch and added a new test app182 which is a copy of the test app124.
Except that both @exceptionhandlers are contained in the @RestController and the @RestControllerAdvice class was removed.
Expected behavior
@ExceptionHandler within a @RestController are picked up even when no @RestControllerAdvice class exists.
Additional context
The original feature was implemented in ticket #748