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 11/*
2- * Copyright 2002-2017 the original author or authors.
2+ * Copyright 2002-2021 the original author or authors.
33 *
44 * Licensed under the Apache License, Version 2.0 (the "License");
55 * you may not use this file except in compliance with the License.
4545 * a return type and avoid the use of {@code @ResponseStatus} altogether.
4646 *
4747 * <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.
5051 *
5152 * @author Arjen Poutsma
5253 * @author Sam Brannen
You can’t perform that action at this time.
0 commit comments