Summary-wcj opened a new issue #2044:
URL: https://github.com/apache/shardingsphere-elasticjob/issues/2044
I think ElasticJobBootstrapConfiguration implements
SmartInitializingSingleton have a bug.
I use ElasticJob Lite
I don't know how to describe this error, but you can repeat this problem. I
use the starter and email dependency of version 3.0.0, then use the job in
OneOffJobBootstrap, and then start the program. It will appear that the bean of
this task cannot be obtained during injection.
1.version:
3.0.0
ElasticJob Lite
2.Expected
start success
3.Actual
start fail
4.Reason analyze
I think implements SmartInitializingSingleton after @RestController is
loaded and The bean was not taken over by spring when it was used.
5.Steps to reproduce the behavior
a.Configure one-time scheduled tasks in the YML file
b.Write a controller
c.Write a task implements simplejob and add @Component annotation on the
class
6.Example codes for reproduce this issue
https://github.com/Summary-wcj/elastic-job.git
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]