File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed
spring-web/src/main/java/org/springframework/web/bind/annotation Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change 32
32
* {@link ModelAttribute @ModelAttribute} methods to be shared across
33
33
* multiple {@code @Controller} classes.
34
34
*
35
- * <p>Classes with {@code @ControllerAdvice} can be declared explicitly as Spring
36
- * beans or auto-detected via classpath scanning. All such beans are sorted based
37
- * on {@link org.springframework.core.Ordered Ordered},
38
- * {@link org.springframework.core.annotation.Order @Order}, and
39
- * {@link javax.annotation.Priority @Priority} (in that order of precedence),
40
- * and applied in that order at runtime. For handling exceptions, an
35
+ * <p>Classes annotated with {@code @ControllerAdvice} can be declared explicitly
36
+ * as Spring beans or auto-detected via classpath scanning. All such beans are
37
+ * sorted based on {@link org.springframework.core.Ordered Ordered} /
38
+ * {@link org.springframework.core.PriorityOrdered PriorityOrdered} semantics or
39
+ * {@link org.springframework.core.annotation.Order @Order} /
40
+ * {@link javax.annotation.Priority @Priority} declarations, with {@code Ordered} /
41
+ * {@code PriorityOrdered} semantics taking precedence over {@code @Order} /
42
+ * {@code @Priority} declarations. {@code @ControllerAdvice} beans are then
43
+ * applied in that order at runtime. For handling exceptions, an
41
44
* {@code @ExceptionHandler} will be picked on the first advice with a matching
42
45
* exception handler method. For model attributes and {@code InitBinder}
43
46
* initialization, {@code @ModelAttribute} and {@code @InitBinder} methods will
You can’t perform that action at this time.
0 commit comments