提交 8198f7aa 编写于 作者: doc_wei's avatar doc_wei

定时任务注释说明

上级 0344671c
/**
* Copyright 卫志强 QQ:598748873@qq.com Inc. All rights reserved.
*/
package com.skyeye.quartz.config;
import org.quartz.spi.TriggerFiredBundle;
......@@ -9,6 +10,16 @@ import org.springframework.beans.factory.config.AutowireCapableBeanFactory;
import org.springframework.scheduling.quartz.AdaptableJobFactory;
import org.springframework.stereotype.Component;
/**
*
* @ClassName: JobFactory
* @Description: 定时任务工厂类
* @author: skyeye云系列--卫志强
* @date: 2021/6/10 20:35
*
* @Copyright: 2021 https://gitee.com/doc_wei01/skyeye Inc. All rights reserved.
* 注意:本内容仅限购买后使用.禁止私自外泄以及用于其他的商业目的
*/
@Component
public class JobFactory extends AdaptableJobFactory {
@Autowired
......
/**
* Copyright 卫志强 QQ:598748873@qq.com Inc. All rights reserved.
*/
package com.skyeye.quartz.config;
import org.quartz.Scheduler;
......@@ -9,6 +10,16 @@ import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.quartz.SchedulerFactoryBean;
/**
*
* @ClassName: QuartzConfig
* @Description: 定时任务配置类
* @author: skyeye云系列--卫志强
* @date: 2021/6/10 20:35
*
* @Copyright: 2021 https://gitee.com/doc_wei01/skyeye Inc. All rights reserved.
* 注意:本内容仅限购买后使用.禁止私自外泄以及用于其他的商业目的
*/
@Configuration
public class QuartzConfig {
......
/**
* Copyright 卫志强 QQ:598748873@qq.com Inc. All rights reserved.
*/
package com.skyeye.quartz.config;
import org.quartz.DisallowConcurrentExecution;
......@@ -14,7 +15,16 @@ import org.springframework.stereotype.Component;
import com.skyeye.eve.dao.SysQuartzDao;
import com.skyeye.quartz.entity.SysQuartz;
/**
*
* @ClassName: QuartzJobFactory
* @Description: 定时任务分发任务类
* @author: skyeye云系列--卫志强
* @date: 2021/6/10 20:36
*
* @Copyright: 2021 https://gitee.com/doc_wei01/skyeye Inc. All rights reserved.
* 注意:本内容仅限购买后使用.禁止私自外泄以及用于其他的商业目的
*/
@Component
@DisallowConcurrentExecution
public class QuartzJobFactory implements Job{
......
/**
* Copyright 卫志强 QQ:598748873@qq.com Inc. All rights reserved.
*/
package com.skyeye.quartz.config;
import lombok.extern.slf4j.Slf4j;
......@@ -17,6 +18,16 @@ import com.skyeye.quartz.entity.SysQuartz;
import java.util.Date;
/**
*
* @ClassName: QuartzService
* @Description: 定时任务操作类
* @author: skyeye云系列--卫志强
* @date: 2021/6/10 20:36
*
* @Copyright: 2021 https://gitee.com/doc_wei01/skyeye Inc. All rights reserved.
* 注意:本内容仅限购买后使用.禁止私自外泄以及用于其他的商业目的
*/
@Slf4j
@Service
public class QuartzService {
......
/**
* Copyright 卫志强 QQ:598748873@qq.com Inc. All rights reserved.
*/
package com.skyeye.quartz.config;
import lombok.extern.slf4j.Slf4j;
......@@ -17,6 +18,16 @@ import com.skyeye.quartz.entity.SysQuartz;
import java.util.Date;
import java.util.List;
/**
*
* @ClassName: TaskRunner
* @Description: 任务启动配置类
* @author: skyeye云系列--卫志强
* @date: 2021/6/10 20:37
*
* @Copyright: 2021 https://gitee.com/doc_wei01/skyeye Inc. All rights reserved.
* 注意:本内容仅限购买后使用.禁止私自外泄以及用于其他的商业目的
*/
@Slf4j
public class TaskRunner implements ApplicationRunner, Ordered {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册