File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
spring-context/src/main/java/org/springframework/scheduling/annotation Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2021 the original author or authors.
2
+ * Copyright 2002-2025 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.
146
146
* compile-time weaving or load-time weaving applying the aspect to the affected classes.
147
147
* There is no proxy involved in such a scenario; local calls will be intercepted as well.
148
148
*
149
+ * <p><b>Note: {@code @EnableAsync} applies to its local application context only,
150
+ * allowing for selective activation at different levels.</b> Please redeclare
151
+ * {@code @EnableAsync} in each individual context, for example, the common root web
152
+ * application context and any separate {@code DispatcherServlet} application contexts,
153
+ * if you need to apply its behavior at multiple levels.
154
+ *
149
155
* @author Chris Beams
150
156
* @author Juergen Hoeller
151
157
* @author Stephane Nicoll
You can’t perform that action at this time.
0 commit comments