update aliyun-schedulerx-spring-boot-sample#72
Open
yaohuitc wants to merge 4 commits into
Open
Conversation
| package com.alibaba.cloud.examples.schedulerx.job.annotation; | ||
|
|
||
| import com.alibaba.schedulerx.common.domain.ExecuteMode; | ||
| import com.alibaba.schedulerx.worker.processor.SchedulerX; |
| * Can use @SchedulerX annotation set job config when open sync(true) | ||
| */ | ||
| @Scheduled(cron = "0/5 * * * * ?") | ||
| @SchedulerX(name = "simpleJobWithAnnotation", model = ExecuteMode.STANDALONE) |
steverao
reviewed
Nov 1, 2022
| @@ -0,0 +1,23 @@ | |||
| ## 控制台定义任务配置信息,或通过注解定义任务 (推荐模式) | |||
Collaborator
There was a problem hiding this comment.
建议这份文件类型也修改为yml,因为另外一份文件格式是yml,保持一致会显得正式一些,否则会让用户感觉有点随意。
|
|
||
| 2. pom增加依赖aliyun-schedulerx-spring-boot-starter | ||
|
|
||
| 2. 进入任务调度控制台->应用管理,点击"创建应用",配置应用分组信息保存(PS:本地开发测试环境仅支持公网region创建分组对接) |
| * Can use @SchedulerX annotation set job config when open sync(true) | ||
| */ | ||
| @Scheduled(cron = "0/5 * * * * ?") | ||
| @SchedulerX(name = "simpleJobWithAnnotation", model = ExecuteMode.STANDALONE) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
update aliyun-schedulerx-spring-boot-sample, schedulerx support job running with spring @scheduled annotation