feat:动态获取任务的cron和开关

This commit is contained in:
Xiang
2026-01-06 15:30:26 +08:00
parent 95a590f088
commit 64ca6f4478
14 changed files with 275 additions and 12 deletions

View File

@@ -12,7 +12,7 @@ import org.springframework.stereotype.Component;
@Component
public class TestXxzJob1 {
@XxzJob(name = "TestXxzJob", cron = "0/1 * * * * ? ", enabled = true)
@XxzJob(name = "TestXxzJob")
public void test() {
log.info("任务调度开始");
}

View File

@@ -1,5 +1,6 @@
xxz-job:
app-name: springboot-quartz-test
admin-address: http://127.0.0.1:30030
spring:
main: