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

@@ -30,7 +30,8 @@ import org.springframework.http.HttpStatus;
* {@link #reason} that should be returned.
*
* <p>The status code is applied to the HTTP response when the handler
* method is invoked.
* method is invoked and overrides status information set by other means,
* like {@code ResponseEntity} or {@code "redirect:"}.
*
* <p><strong>Warning</strong>: when using this annotation on an exception
* class, or when setting the {@code reason} attribute of this annotation,