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.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store