935090232@qq.com
2022-03-06 71a2636493d2472a3cd76a9d7d7e9a557618bab3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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("**********定时任务启动**********");
    }
}