Class DefaultTaskSchedulerConfiguration
java.lang.Object
org.springframework.boot.autoconfigure.task.DefaultTaskSchedulerConfiguration
@Configuration(proxyBeanMethods=false)
@ConditionalOnMissingBean(name="taskScheduler")
public class DefaultTaskSchedulerConfiguration
extends Object
Configuration that can be imported to expose a standard
TaskScheduler if the
user has not enabled task scheduling explicitly. A SimpleAsyncTaskScheduler is
exposed if the user enables virtual threads via
spring.threads.virtual.enabled=true, otherwise ThreadPoolTaskScheduler.
Configurations importing this one should be ordered after
TaskSchedulingAutoConfiguration.
- Since:
- 4.1.0
- Author:
- Phillip Webb
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe bean name of the default task scheduler. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
DEFAULT_TASK_SCHEDULER_BEAN_NAME
The bean name of the default task scheduler.- See Also:
-
-
Constructor Details
-
DefaultTaskSchedulerConfiguration
public DefaultTaskSchedulerConfiguration()
-