-
Notifications
You must be signed in to change notification settings - Fork 38.8k
Closed
Labels
in: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancementA general enhancement
Milestone
Description
Florent Ramiere opened SPR-6902 and commented
When this method is executed
@ExceptionHandler
@ResponseBody
public String dummyExceptionHandler(Exception e) {
return e.getMessage();
}
Spring mvc tries to resolve the view using the method output --> 404.
As the method is annotated with @ResponseBody
, it should directly write the method output to the response.
Affects: 3.0.1
Attachments:
- spr-6902.zip (32.61 kB)
Issue Links:
- AnnotationMethodHandlerAdapter and AnnotationMethodHandlerExceptionResolver should supports MappingJacksonHttpMessageConverter by default [SPR-7190] #11850 AnnotationMethodHandlerAdapter and AnnotationMethodHandlerExceptionResolver should supports MappingJacksonHttpMessageConverter by default ("is duplicated by")
- Add support for @Request-/@ResponseBody to @ExceptionHandler methods [SPR-7820] #12476 Add support for
@Request-
/@ResponseBody
to@ExceptionHandler
methods ("is duplicated by") - @ResponseStatus does not work with @ExceptionHandler [SPR-6961] #11626
@ResponseStatus
does not work with@ExceptionHandler
Referenced from: commits 157623b, 7f8c91a
0 votes, 8 watchers
Metadata
Metadata
Assignees
Labels
in: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancementA general enhancement