类 TaskSchedulingAutoConfiguration
- java.lang.Object
- org.springframework.boot.autoconfigure.task.TaskSchedulingAutoConfiguration
@ConditionalOnClass(org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler.class) @Configuration @EnableConfigurationProperties(TaskSchedulingProperties.class) public class TaskSchedulingAutoConfiguration extends Object
Auto-configuration
forTaskScheduler
.- 从以下版本开始:
- 2.1.0
构造器概要
构造器 构造器 说明 TaskSchedulingAutoConfiguration()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler
taskScheduler(org.springframework.boot.task.TaskSchedulerBuilder builder)
org.springframework.boot.task.TaskSchedulerBuilder
taskSchedulerBuilder(TaskSchedulingProperties properties, org.springframework.beans.factory.ObjectProvider<org.springframework.boot.task.TaskSchedulerCustomizer> taskSchedulerCustomizers)
构造器详细资料
TaskSchedulingAutoConfiguration
public TaskSchedulingAutoConfiguration()
方法详细资料
taskScheduler
@Bean @ConditionalOnBean(name="org.springframework.context.annotation.internalScheduledAnnotationProcessor") @ConditionalOnMissingBean({org.springframework.scheduling.annotation.SchedulingConfigurer.class,org.springframework.scheduling.TaskScheduler.class,java.util.concurrent.ScheduledExecutorService.class}) public org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler taskScheduler(org.springframework.boot.task.TaskSchedulerBuilder builder)
taskSchedulerBuilder
@Bean @ConditionalOnMissingBean public org.springframework.boot.task.TaskSchedulerBuilder taskSchedulerBuilder(TaskSchedulingProperties properties, org.springframework.beans.factory.ObjectProvider<org.springframework.boot.task.TaskSchedulerCustomizer> taskSchedulerCustomizers)