chen.llin
13 小时以前 310a1841c3ba3331529d5791605ef1fba24c3ecd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package com.zy.core.properties;
 
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
 
/**
 * 定时任务配置
 * Created on 2024
 */
@Data
@Configuration
@ConfigurationProperties(prefix = "schedule")
public class ScheduleProperties {
 
    /**
     * 定时任务总开关
     * true: 启用所有定时任务(默认)
     * false: 禁用所有定时任务
     */
    private boolean enabled = true;
 
}