package com.ruoyi.schedule.config;

import org.noear.solon.annotation.Bean;
import org.noear.solon.annotation.Configuration;
import org.quartz.Scheduler;
import org.quartz.SchedulerException;
import org.quartz.impl.StdSchedulerFactory;

/**
 * 任务调度配置
 * @author ruoyi
 */
@Configuration
public class ScheduleConfig {

    @Bean
    public Scheduler jobInit() throws SchedulerException {
        return new StdSchedulerFactory().getScheduler();
    }

}
