Spring MVC: @EnableAsync needs to be redeclared for each ApplicationContext #34843
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
type: documentation
A documentation task
Milestone
I'm using spring-context-6.2.2.
Similar to SPR-16852,
@EnableAsync
must be redeclared for each ServletRegistrationBean because the AsyncAnnotationBeanPostProcessor registered in the root ApplicationContext is not inherited by the child ApplicationContext and there can only be one AsyncConfigurer.I suggest adding a note to
@EnableAsync
Javadoc akin to what is provided by@EnableScheduling
:The text was updated successfully, but these errors were encountered: