Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

同一类上配置多个@ElasticJobConf 注解 #29

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

heyongcheng
Copy link

支持在一个任务类上配置多个 @ElasticJobConf 注解,根据jobParameter执行不同的任务

@yinjihuan
Copy link
Owner

我不太清楚为什么要配置多个?就算用原生XML的配置方式,也是一个类一个Job

@heyongcheng
Copy link
Author

我现在有这样的需求,一笔提现请求,按照提现方式有实时到帐、2小时到账、次日到账。处理方式都是一样的,只是调度时间不同。我想通过一个类配置不同的任务参数和cron表达式来实现。其实再封装一层,创建3个任务类也是可以的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants