You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Along the lines of #17827, AsyncAnnotationBeanPostProcessor could find a TaskExecutor bean by type and/or name in the context, avoiding the need to implement AsyncConfigurer for that purpose.
This turns out to be easy enough, so I've rolled it in for 4.2 GA still.
Note that we search for a TaskExecutor bean... not a plain Executor since that would match with ScheduledExecutorService as well, which is unusable for our purposes here. TaskExecutor is more clearly designed for it and clearly differentiated from scheduler types. And we fall back to a bean named "taskExecutor", if any, along the lines of #17827.
Juergen Hoeller opened SPR-13248 and commented
Along the lines of #17827,
AsyncAnnotationBeanPostProcessor
could find aTaskExecutor
bean by type and/or name in the context, avoiding the need to implementAsyncConfigurer
for that purpose.Issue Links:
@Async
in 4.2.x but works in 4.1.x@EnableAsync
's javadoc)Referenced from: commits c3e57dd
The text was updated successfully, but these errors were encountered: