mirror of
https://gitee.com/hhyykk/ipms-sjy.git
synced 2025-07-17 12:35:07 +08:00
code review:访问日志、错误日志的清理 Job 实现
This commit is contained in:
@ -30,6 +30,7 @@ public class YudaoQuartzAutoConfiguration {
|
||||
return new SchedulerManager(scheduler.get());
|
||||
}
|
||||
|
||||
// TODO @j-sentinel:这个 job,先拿到 infra biz 里面实现哈;
|
||||
@Bean
|
||||
public JobLogJobHandler jobLogJobHandler(LogJobProperties logJobProperties){
|
||||
return new JobLogJobHandler(logJobProperties);
|
||||
|
@ -7,7 +7,9 @@ import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
// TODO @j-sentinel:名字和项目里其它保持统一,可以叫 JobLogCleanJob,不用带 handler 哈
|
||||
/**
|
||||
* // TODO @j-sentinel:要写下类注释噢,就是这个类要干啥;然后下面两个应该是 @author 和 @since
|
||||
* @Author: j-sentinel
|
||||
* @Date: 2023/9/30 20:40
|
||||
*/
|
||||
|
@ -3,6 +3,7 @@ package cn.iocoder.yudao.framework.quartz.core.job;
|
||||
import lombok.Data;
|
||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
|
||||
// TODO @j-sentinel:这个配置类,先暂时不做,每个 Job 里面定一个静态类。其实不是所有的变量,都需要配置化,因为它本身基本也不会改动。
|
||||
/**
|
||||
* @Author: j-sentinel
|
||||
* @Date: 2023/9/30 16:17
|
||||
|
Reference in New Issue
Block a user