package com.erp.task;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.data.jpa.repository.config.EnableJpaAuditing;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * 定时任务调度服务启动类
 * 支持：
 * 1. 定时任务CRUD
 * 2. Cron表达式配置
 * 3. 任务执行记录
 * 4. 任务调度管理
 * 5. 失败重试机制
 * 6. 任务监控告警
 * 7. 兼容XXL-Job
 */
@SpringBootApplication
@EnableJpaAuditing
@EnableScheduling
@EnableAsync
@EnableTransactionManagement
public class ScheduledTaskApplication {

    public static void main(String[] args) {
        SpringApplication.run(ScheduledTaskApplication.class, args);
    }
}
