Spring Async ThreadPoolTaskScheduler not initialized

You have to explicitly call scheduler.initialize() after setting all properties but before returning the scheduler.

See full working test case here.

Leave a Comment