You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
If i add the Validated annotation etc. to the controller, it will become an AOP Proxy class, but the response returned by ExceptionHandler will not be displayed.
To Reproduce GET /exception
@RestController
@RequestMapping("exception")
@Validated
public class ExceptionController {
@GetMapping
public String index() {
throw new ExampleException();
}
@ExceptionHandler(ExampleException.class)
@ResponseStatus(HttpStatus.BAD_REQUEST)
@ApiResponse(responseCode = "400", description = "bad request")
public String customControllerException() {
return "exception1";
}
}
Describe the bug
If i add the Validated annotation etc. to the controller, it will become an AOP Proxy class, but the response returned by ExceptionHandler will not be displayed.
To Reproduce
GET /exception
Expected behavior
Actual
Expected:
The text was updated successfully, but these errors were encountered: