Document @ResponseStatus behavior

This commit documents that the ResponseStatus annotation does not
override the status set through other means.

Closes gh-30305
See gh-18019
This commit is contained in:
Arjen Poutsma
2023-05-09 10:59:05 +02:00
parent 3a0a19cff8
commit a133aae8d6
2 changed files with 3 additions and 6 deletions

View File

@@ -86,9 +86,6 @@ name (such as `redirect:/myapp/some/resource`) redirects relative to the current
Servlet context, while a name such as `redirect:https://myhost.com/some/arbitrary/path`
redirects to an absolute URL.
Note that, if a controller method is annotated with the `@ResponseStatus`, the annotation
value takes precedence over the response status set by `RedirectView`.
[[mvc-redirecting-forward-prefix]]
== Forwarding