prefect1005 opened a new issue #2014:
URL: https://github.com/apache/shardingsphere-elasticjob/issues/2014


   ## Bug Report
   
   ### Which version of ElasticJob did you use?
   elasticjob-lite-spring-boot-starter  3.0.1
   
   ### Which project did you use? ElasticJob-Lite or ElasticJob-Cloud?
   ElasticJob-Lite
   
   ### Actual behavior
   
   ***************************
   APPLICATION FAILED TO START
   ***************************
   Description:
   A component required a bean named 'myOneOffJobBean' that could not be found.
   
   
   my config:
   elasticjob.jobs.oneOffJob.elasticJobClass=com.example.demo.MyElasticJob
   elasticjob.jobs.oneOffJob.jobBootstrapBeanName=myOneOffJobBean
   elasticjob.jobs.oneOffJob.shardingTotalCount=3
   
   in controller:
   @Resource(name = "myOneOffJobBean")
   private OneOffJobBootstrap myOneOffJobBean;
   
   
   ### Reason analyze (If you can)
   
   in 3.0.0 version is ok
   i find  
   https://github.com/apache/shardingsphere-elasticjob/issues/1810
   this issues 
   
   and  in this merge
   
https://github.com/apache/shardingsphere-elasticjob/pull/1930/commits/0446a5d9a12e8a83300316b8de044c107328ddd7
   JobBootstrapBeans instantiation in afterSingletonsInstantiated
   
   just because of this,in application Controller , the OneOffJobBootstrap has 
not init.
   so what can i do? 
   
   hope to reply, thanks
   
   
   
   ### Steps to reproduce the behavior.
   
   ### Example codes for reproduce this issue (such as a github link).
   


-- 
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]


Reply via email to