From aa2bfd4b62c7424346f7a798b66b489ac6ae63f4 Mon Sep 17 00:00:00 2001 From: Sviatoslav Hryb Date: Tue, 8 Jun 2021 19:39:18 +0300 Subject: [PATCH] Document that class-level @ResponseStatus is inherited by @ExceptionHandler methods Closes gh-27031 --- .../org/springframework/web/bind/annotation/ResponseStatus.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-web/src/main/java/org/springframework/web/bind/annotation/ResponseStatus.java b/spring-web/src/main/java/org/springframework/web/bind/annotation/ResponseStatus.java index c283fd85a5..4505c5bf69 100644 --- a/spring-web/src/main/java/org/springframework/web/bind/annotation/ResponseStatus.java +++ b/spring-web/src/main/java/org/springframework/web/bind/annotation/ResponseStatus.java @@ -46,7 +46,7 @@ import org.springframework.http.HttpStatus; * *

Note that a controller class may also be annotated with * {@code @ResponseStatus} and is then inherited by all {@code @RequestMapping} - * methods. + * and {@code @ExceptionHandler} methods. * * @author Arjen Poutsma * @author Sam Brannen