File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
spring-web/src/main/java/org/springframework/web/bind/annotation Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2017 the original author or authors.
2
+ * Copyright 2002-2021 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
45
45
* a return type and avoid the use of {@code @ResponseStatus} altogether.
46
46
*
47
47
* <p>Note that a controller class may also be annotated with
48
- * {@code @ResponseStatus} and is then inherited by all {@code @RequestMapping}
49
- * and {@code @ExceptionHandler} methods.
48
+ * {@code @ResponseStatus} which is then inherited by all {@code @RequestMapping}
49
+ * and {@code @ExceptionHandler} methods in that class and its subclasses unless
50
+ * overridden by a local {@code @ResponseStatus} declaration on the method.
50
51
*
51
52
* @author Arjen Poutsma
52
53
* @author Sam Brannen
You can’t perform that action at this time.
0 commit comments