feat:动态获取任务的cron和开关
This commit is contained in:
@@ -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("任务调度开始");
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
xxz-job:
|
||||
app-name: springboot-quartz-test
|
||||
admin-address: http://127.0.0.1:30030
|
||||
|
||||
spring:
|
||||
main:
|
||||
|
||||
Reference in New Issue
Block a user