TeslaCN commented on issue #1597:
URL:
https://github.com/apache/shardingsphere-elasticjob/issues/1597#issuecomment-712920673
Now I have designed a new configuration format.
### Before
```yaml
simpleJob:
elasticJobClass:
org.apache.shardingsphere.elasticjob.lite.example.job.SpringBootSimpleJob
cron: 0/5 * * * * ?
shardingTotalCount: 3
shardingItemParameters: 0=Beijing,1=Shanghai,2=Guangzhou
props:
email:
host: host
port: 465
username: username
password: password
protocol: smtp
useSsl: true
subject: ElasticJob error message
from: [email protected]
to: [email protected],[email protected]
cc: [email protected]
bcc: [email protected]
debug: false
```
### After
```yaml
simpleJob:
elasticJobClass:
org.apache.shardingsphere.elasticjob.lite.example.job.SpringBootSimpleJob
cron: 0/5 * * * * ?
shardingTotalCount: 3
shardingItemParameters: 0=Beijing,1=Shanghai,2=Guangzhou
extraConfigurationBeans:
- beanClass:
org.apache.shardingsphere.elasticjob.error.handler.dingtalk.DingtalkConfiguration
props:
webhook: my-webhook
keyword: my-keyword
secret: my-secret
- beanClass:
org.apache.shardingsphere.elasticjob.error.handler.email.EmailConfiguration
props:
host: smtp.myhost
port: 465
username: my-username
password: my-password
useSsl: true
from: [email protected]
to: [email protected]
debug: true
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]