SPR-6008 - @ResponseStatus on @ExceptionHandler method is ignored

This commit is contained in:
Arjen Poutsma
2009-08-18 14:37:23 +00:00
parent 5680cd4a19
commit 3b7691d525
3 changed files with 35 additions and 10 deletions

View File

@@ -83,6 +83,10 @@ import java.lang.annotation.Target;
* only applicable in a Servlet environment).
* </ul>
*
* <p>In Servlet environments, you can combine the {@code ExceptionHandler} annotation
* with {@link ResponseStatus @ResponseStatus}, to define the response status
* for the HTTP response.
*
* <p><b>NOTE: <code>@RequestMapping</code> will only be processed if a
* corresponding <code>HandlerMapping</code> (for type level annotations)
* and/or <code>HandlerAdapter</code> (for method level annotations) is