|
|
|
|
@ -9,6 +9,7 @@ import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean
|
|
|
|
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
|
|
|
|
|
import org.springframework.context.annotation.Bean;
|
|
|
|
|
import org.springframework.context.annotation.Configuration;
|
|
|
|
|
import org.springframework.context.annotation.Primary;
|
|
|
|
|
import org.springframework.scheduling.annotation.EnableScheduling;
|
|
|
|
|
import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor;
|
|
|
|
|
import org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler;
|
|
|
|
|
@ -68,7 +69,7 @@ public class ThreadPoolConfig {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Bean
|
|
|
|
|
@ConditionalOnMissingBean(ThreadPoolTaskScheduler.class)
|
|
|
|
|
@Primary
|
|
|
|
|
public ThreadPoolTaskScheduler threadPoolTaskScheduler() {
|
|
|
|
|
ThreadPoolTaskScheduler t = new ThreadPoolTaskScheduler();
|
|
|
|
|
|
|
|
|
|
|