| | |
| | | ///** |
| | | // * 定时任务配置(单机部署建议删除此类和qrtz数据库表,默认走内存会最高效) |
| | | // * |
| | | // * @author ruoyi |
| | | // * @author ard |
| | | // */ |
| | | //@Configuration |
| | | //public class ScheduleConfig |
| | |
| | | // |
| | | // // quartz参数 |
| | | // Properties prop = new Properties(); |
| | | // prop.put("org.quartz.scheduler.instanceName", "RuoyiScheduler"); |
| | | // prop.put("org.quartz.scheduler.instanceName", "ArdScheduler"); |
| | | // prop.put("org.quartz.scheduler.instanceId", "AUTO"); |
| | | // // 线程池配置 |
| | | // prop.put("org.quartz.threadPool.class", "org.quartz.simpl.SimpleThreadPool"); |
| | |
| | | // prop.put("org.quartz.jobStore.tablePrefix", "QRTZ_"); |
| | | // factory.setQuartzProperties(prop); |
| | | // |
| | | // factory.setSchedulerName("RuoyiScheduler"); |
| | | // factory.setSchedulerName("ArdScheduler"); |
| | | // // 延时启动 |
| | | // factory.setStartupDelay(1); |
| | | // factory.setApplicationContextSchedulerContextKey("applicationContextKey"); |