You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2020/11/08 03:24:49 UTC

[GitHub] [shardingsphere-elasticjob] TeslaCN opened a new issue #1696: The way to injecting OneOffJobBootstrap is not very friendly when using Spring Boot Starter

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:
users@infra.apache.org



[GitHub] [shardingsphere-elasticjob] Technoboy- closed issue #1696: The way to injecting OneOffJobBootstrap is not very friendly when using Spring Boot Starter

Posted by GitBox <gi...@apache.org>.
Technoboy- closed issue #1696:
URL: https://github.com/apache/shardingsphere-elasticjob/issues/1696


   


----------------------------------------------------------------
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:
users@infra.apache.org