I\'m using Spring Boot and have issues scheduling a cron task using values existing in database.
For the time being, I\'m reading values f
To achieve your goals you must configure your scheduler at runtime. It means you need to use more low-level scheduler API. Precisely when you have already prepared connect with your database you can configure your scheduler. I think you need to get rid of using @Scheduled annotation and manully manage your scheduler.
I think these topics can help to describe what I mean:
How to change Spring's @Scheduled fixedDelay at runtime
Scheduling a job with Spring programmatically (with fixedRate set dynamically)
However always you can use wild approaches where you would intercept the bean creation and replace original annotation on annotation with custom metadata but in order to implement it you must know many framework details and how @Scheduled annatation processor works.