package com.capitalone.dashboard.config; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.scheduling.TaskScheduler; import org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler; /** * Configuration class that creates Beans common to any Collector implementation */ @Configuration public class CollectorConfig { @Bean public TaskScheduler taskScheduler() { return new ThreadPoolTaskScheduler(); } }