How will the Spring DI Container create TriggerScheduler? You have a parameter
val scheduledTriggerExecutors: List<ScheduledTriggerExecutor>
and I don't know how the DI is going to resolve that? You will need to remove @Component from TriggerScheduler and have an @Bean method in a @Configuration class to create this. Then it should behave as expected
l
Luca Clemente Gonzalez
01/28/2020, 11:58 AM
It works, its created because this list inherits from the abstract class above, anyways the problem was solved by changing spring lazy initialisation to false.