How to set Dynamic Task Schedulers Programmatically using Spring Boot

If you are used to (or at least done some research) scheduling tasks in Kotlin or Java by using the Spring Framework, you’ve probably seen the @Scheduled annotation.

That’s fine, you can annotate a method, define a fixedDelay or a fixedRate or a Cron Expression and your method will be run following these rules.