org.springframework.boot.autoconfigure.scheduling.SchedulingAutoConfigurationBefore Maven / Gradle / Ivy
package org.springframework.boot.autoconfigure.scheduling;
import org.springframework.boot.autoconfigure.AutoConfigureBefore;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.Trigger;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
@ConditionalOnClass(Trigger.class)
@AutoConfigureBefore(SchedulingAutoConfiguration.class)
@Configuration
@ConditionalOnProperty(prefix = "spring.scheduling", name = "auto", havingValue = "true", matchIfMissing = true)
public class SchedulingAutoConfigurationBefore {
@EnableAsync
@EnableScheduling
@Configuration
protected static class SchedulingConfiguration {
}
}