Document that @ResponseStatus overrides redirect views

Issue: SPR-13439
This commit is contained in:
Brian Clozel
2015-09-24 18:43:51 +02:00
parent 583a48ab75
commit 55db4ae94b
2 changed files with 5 additions and 1 deletions

View File

@@ -2789,6 +2789,9 @@ name such as `redirect:/myapp/some/resource` will redirect relative to the curre
Servlet context, while a name such as `redirect:http://myhost.com/some/arbitrary/path`
will redirect to an absolute URL.
Note that the controller handler is annotated with the `@ResponseStatus`, the annotation
value takes precedence over the response status set by `RedirectView`.
[[mvc-redirecting-forward-prefix]]
==== The forward: prefix