Hi everyone,

I prefer to discuss the annotation of ElasticJob  plan.

example:

```
@ElasticScheduled(
        cron = "0/5 * * * * ?",
        jobName = "SimpleTestJobSecond",
        shardingTotalCount = 3,
        shardingItemParameters = "0=Beijing,1=Shanghai,2=Guangzhou",
        jobListenerTypes = {"NOOP", "LOG"},
        props = {
                @ElasticJobProp(key = "print.title", value = "test title"),
                @ElasticJobProp(key = "print.content", value = "test
content")
        }
)
public class SimpleTestJob implements CustomJob {

    @Override
    public void execute(final ShardingContext shardingContext) {
    }

}
```

```
@Configuration
@EnableElastic(scanBasePackages =
"org.apache.shardingsphere.elasticjob.lite.example.job.simple")
public class ElasticConfig {

}
```

we can look at it on
https://github.com/apache/shardingsphere-elasticjob/pull/1954

I am going to work it soon. Please remind me if you have a suggestion.


------------------
Sincerely,
SunKai  Cai (skai)

Reply via email to