xiaoyong931011
2021-04-08 d6e902a48df4264d6dbf6ff0c9799c3c30c9d9ff
zq-erp/src/main/java/com/matrix/config/TaskScheduleConfig.java
@@ -1,10 +1,16 @@
package com.matrix.config;
import org.springframework.context.annotation.Configuration;
import com.matrix.core.tools.LogUtil;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.stereotype.Component;
@Configuration
@Component
@EnableScheduling
@ConditionalOnProperty(name = "scheduling.enabled", havingValue= "true")
public class TaskScheduleConfig {
    public   TaskScheduleConfig(){
        LogUtil.debug("**********定时任务启动**********");
    }
}