@Configuration
public class PoolTaskConfig
extends java.lang.Object
构造器和说明 |
---|
PoolTaskConfig() |
限定符和类型 | 方法和说明 |
---|---|
org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor |
taskExecutor()
执行任务
|
org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler |
threadPoolTaskScheduler()
调度任务的调度器
ThreadPoolTaskScheduler:线程池任务调度类,能够开启线程池进行任务调度。
|
@Bean public org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor taskExecutor()
@Bean public org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler threadPoolTaskScheduler()