初始化

master
Cui YongXing 2024-08-26 10:41:03 +08:00
parent cf2b9e9fc7
commit 379ff5eb22
2 changed files with 0 additions and 29 deletions

View File

@ -1,28 +0,0 @@
package com.muyu.common.xxl.demo;
import com.xxl.job.core.context.XxlJobHelper;
import com.xxl.job.core.handler.annotation.XxlJob;
import lombok.extern.log4j.Log4j2;
import org.springframework.stereotype.Component;
@Log4j2
@Component
public class XxlJobDemoService {
/**
*
*/
@XxlJob("xxl-job-demo-no-param")
public void xxlJobDemoNoParam(){
log.info("调度名称:[{}] - 无参", "xxl-job-demo-no-param");
}
/**
*
*/
@XxlJob("xxl-job-demo-one-param")
public void xxlJobDemoOneParam(){
String param = XxlJobHelper.getJobParam();
log.info("调度名称:[{}] - 参数:[{}]", "xxl-job-demo-one-param", param);
}
}

View File

@ -1,3 +1,2 @@
com.muyu.common.xxl.XXLJobConfig com.muyu.common.xxl.XXLJobConfig
com.muyu.common.xxl.XxlJobProperties com.muyu.common.xxl.XxlJobProperties
com.muyu.common.xxl.demo.XxlJobDemoService