Merge pull request #15984 from isank
* pr/15984: Polish contribution Order TaskExecution auto-config before TaskScheduling auto-config
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012-2018 the original author or authors.
|
||||
* Copyright 2012-2019 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -19,6 +19,7 @@ package org.springframework.boot.autoconfigure.task;
|
||||
import java.util.concurrent.ScheduledExecutorService;
|
||||
|
||||
import org.springframework.beans.factory.ObjectProvider;
|
||||
import org.springframework.boot.autoconfigure.AutoConfigureAfter;
|
||||
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
|
||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
|
||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
|
||||
@@ -42,6 +43,7 @@ import org.springframework.scheduling.config.TaskManagementConfigUtils;
|
||||
@ConditionalOnClass(ThreadPoolTaskScheduler.class)
|
||||
@Configuration
|
||||
@EnableConfigurationProperties(TaskSchedulingProperties.class)
|
||||
@AutoConfigureAfter(TaskExecutionAutoConfiguration.class)
|
||||
public class TaskSchedulingAutoConfiguration {
|
||||
|
||||
@Bean
|
||||
|
||||
Reference in New Issue
Block a user