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
{{ message }}
Repository navigation
When user creates a TaskScheduler the application context can blow up #3508
The way that @EnableScheduling works can be surprising for users. The problem is that it uses bean lookup by type for TaskScheduler (and TaskExecutor) by default, and if the context contains more than one there is no strategy to fall back to a safe place (e.g. a well-known bean name). Thus this app blows up in your face when Spring Integration is on the classpath:
Spring Integration exacerbates the problem, but actually what they do is pretty sensible (look for a bean with a well known name "taskScheduler" and use that if there is a conflict).
Corollary: the app works if the @Bean is called "taskScheduler" as well:
Activity
dsyer commentedon Jul 17, 2015
Fixed in https://jira.spring.io/browse/SPR-13236