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


   ## Feature Request
   
   Beans of OneOffJobBootstrap are created dynamically. So the annotation 
`@DependsOn` is required to injecting beans of OneOffJobBootstrap. Otherwise, 
beans creation that depends on OneOffJobBootstrap may fail.
   
   ```java
   @RestController
   
@DependsOn("org.apache.shardingsphere.elasticjob.lite.spring.boot.job.ElasticJobLiteAutoConfiguration")
   public class OneOffJobController {
       
       @Resource(name = "manualScriptJobOneOffJobBootstrap")
       private OneOffJobBootstrap manualScriptJob;
   }
   ```
   
   I expect to inject beans of OneOffJobBootstrap without `@DependsOn`.


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


Reply via email to