22 lines
462 B
Java
22 lines
462 B
Java
package com.cnbm.scheduletask.task;
|
||
|
||
import lombok.extern.log4j.Log4j2;
|
||
import org.slf4j.Logger;
|
||
import org.slf4j.LoggerFactory;
|
||
import org.springframework.stereotype.Component;
|
||
|
||
/**
|
||
* @Author weihongyang
|
||
* @Date 2022/6/23 4:41 PM
|
||
* @Version 1.0
|
||
*/
|
||
@Log4j2
|
||
@Component("testTask")
|
||
public class TestTask implements ITask{
|
||
|
||
@Override
|
||
public void run(String params){
|
||
log.info("TestTask定时任务正在执行,参数为:{}", params);
|
||
}
|
||
}
|