Update table of supported controller method return types
See gh-27052
This commit is contained in:
parent
bba66429fb
commit
04f0f1ddb0
|
|
@ -1967,6 +1967,14 @@ generally supported for all return values.
|
|||
| `HttpHeaders`
|
||||
| For returning a response with headers and no body.
|
||||
|
||||
| `ErrorResponse`
|
||||
| To render an RFC 7807 error response with details in the body,
|
||||
see <<webflux-ann-rest-exceptions>>
|
||||
|
||||
| `ProblemDetail`
|
||||
| To render an RFC 7807 error response with details in the body,
|
||||
see <<webflux-ann-rest-exceptions>>
|
||||
|
||||
| `String`
|
||||
| A view name to be resolved with `ViewResolver` instances and used together with the implicit
|
||||
model -- determined through command objects and `@ModelAttribute` methods. The handler
|
||||
|
|
@ -3350,7 +3358,7 @@ include::web-data-binding-model-design.adoc[]
|
|||
|
||||
|
||||
[[webflux-ann-controller-exceptions]]
|
||||
=== Managing Exceptions
|
||||
=== Exceptions
|
||||
[.small]#<<web.adoc#mvc-ann-exceptionhandler, Web MVC>>#
|
||||
|
||||
`@Controller` and <<webflux-ann-controller-advice, @ControllerAdvice>> classes can have
|
||||
|
|
@ -3411,6 +3419,23 @@ for more detail.
|
|||
|
||||
|
||||
|
||||
[[webflux-ann-exceptionhandler-args]]
|
||||
==== Method Arguments
|
||||
[.small]#<<web.adoc#mvc-ann-exceptionhandler-args, Web MVC>>#
|
||||
|
||||
`@ExceptionHandler` methods support the same <<webflux-ann-arguments,method arguments>>
|
||||
as `@RequestMapping` methods, except the request body might have been consumed already.
|
||||
|
||||
|
||||
|
||||
[[webflux-ann-exceptionhandler-return-values]]
|
||||
==== Return Values
|
||||
[.small]#<<web.adoc#mvc-ann-exceptionhandler-return-values, Web MVC>>#
|
||||
|
||||
`@ExceptionHandler` methods support the same <<webflux-ann-return-types,return values>>
|
||||
as `@RequestMapping` methods.
|
||||
|
||||
|
||||
|
||||
[[webflux-ann-controller-advice]]
|
||||
=== Controller Advice
|
||||
|
|
|
|||
|
|
@ -2215,6 +2215,14 @@ supported for all return values.
|
|||
| `HttpHeaders`
|
||||
| For returning a response with headers and no body.
|
||||
|
||||
| `ErrorResponse`
|
||||
| To render an RFC 7807 error response with details in the body,
|
||||
see <<mvc-ann-rest-exceptions>>
|
||||
|
||||
| `ProblemDetail`
|
||||
| To render an RFC 7807 error response with details in the body,
|
||||
see <<mvc-ann-rest-exceptions>>
|
||||
|
||||
| `String`
|
||||
| A view name to be resolved with `ViewResolver` implementations and used together with the implicit
|
||||
model -- determined through command objects and `@ModelAttribute` methods. The handler
|
||||
|
|
@ -3898,6 +3906,7 @@ level, <<mvc-exceptionhandlers, HandlerExceptionResolver>> mechanism.
|
|||
|
||||
[[mvc-ann-exceptionhandler-args]]
|
||||
==== Method Arguments
|
||||
[.small]#<<webflux.adoc#webflux-ann-exceptionhandler-args, WebFlux>>#
|
||||
|
||||
`@ExceptionHandler` methods support the following arguments:
|
||||
|
||||
|
|
@ -3962,6 +3971,7 @@ level, <<mvc-exceptionhandlers, HandlerExceptionResolver>> mechanism.
|
|||
|
||||
[[mvc-ann-exceptionhandler-return-values]]
|
||||
==== Return Values
|
||||
[.small]#<<webflux.adoc#webflux-ann-exceptionhandler-return-values, WebFlux>>#
|
||||
|
||||
`@ExceptionHandler` methods support the following return values:
|
||||
|
||||
|
|
@ -3978,6 +3988,14 @@ level, <<mvc-exceptionhandlers, HandlerExceptionResolver>> mechanism.
|
|||
be converted through `HttpMessageConverter` instances and written to the response.
|
||||
See <<mvc-ann-responseentity>>.
|
||||
|
||||
| `ErrorResponse`
|
||||
| To render an RFC 7807 error response with details in the body,
|
||||
see <<mvc-ann-rest-exceptions>>
|
||||
|
||||
| `ProblemDetail`
|
||||
| To render an RFC 7807 error response with details in the body,
|
||||
see <<mvc-ann-rest-exceptions>>
|
||||
|
||||
| `String`
|
||||
| A view name to be resolved with `ViewResolver` implementations and used together with the
|
||||
implicit model -- determined through command objects and `@ModelAttribute` methods.
|
||||
|
|
|
|||
Loading…
Reference in New Issue