package com.matrix.config;
|
|
import com.matrix.core.tools.LogUtil;
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
|
import org.springframework.scheduling.annotation.EnableScheduling;
|
import org.springframework.stereotype.Component;
|
|
@Component
|
@EnableScheduling
|
@ConditionalOnProperty(name = "scheduling.enabled", havingValue= "true")
|
public class TaskScheduleConfig {
|
|
public TaskScheduleConfig(){
|
LogUtil.debug("**********定时任务启动**********");
|
}
|
}
|