Skip to content

Commit bdd4288

Browse files
committed
feat: 添加 example job
1 parent c1cb840 commit bdd4288

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

  • example/example_svc/src/main/java/com/github/cadecode/uniboot/example/svc/job
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
package com.github.cadecode.uniboot.example.svc.job;
2+
3+
import com.xxl.job.core.handler.annotation.XxlJob;
4+
import lombok.extern.slf4j.Slf4j;
5+
import org.springframework.stereotype.Component;
6+
7+
/**
8+
* xxl-job demo
9+
*
10+
* @author Cade Li
11+
* @since 2023/11/10
12+
*/
13+
@Slf4j
14+
@Component
15+
public class XxJobDemoJob {
16+
17+
@XxlJob("DemoJobHandleTest1")
18+
public void handleTest1() {
19+
log.info("XxJobDemoJob handleTest1");
20+
}
21+
22+
}

0 commit comments

Comments
 (0)