Closed
Description
Dave Syer opened SPR-13236 and commented
Spring Integration creates a bean of type TaskScheduler
but only if it doesn't find one using a sensible search strategy. The strategy in ScheduledAnnotationBeanPostProcessor
is different and not as sensible IMO (it has no fallback to a well-known bean name if there are multiple instances). This can be surprising for users.
See discussion here for background: spring-projects/spring-boot#3508, spring-attic/spring-xd#1747 (comment)
Affects: 4.2 RC2
Issue Links:
- Consistently accept "taskExecutor" bean of type Executor (as stated in @EnableAsync's javadoc) [SPR-15566] #20125 Consistently accept "taskExecutor" bean of type Executor (as stated in
@EnableAsync
's javadoc) - AsyncAnnotationBeanPostProcessor could find TaskExecutor by type/name [SPR-13248] #17839 AsyncAnnotationBeanPostProcessor could find TaskExecutor by type/name