How to change Spring’s @Scheduled fixedDelay at runtime?
In spring boot, you can use an application property directly! For example: @Scheduled(fixedDelayString = “${my.property.fixed.delay.seconds}000″) private void process() { // your impl here } Note that you can also have a default value in case the property isn’t defined, eg to have a default of “60” (seconds): @Scheduled(fixedDelayString = “${my.property.fixed.delay.seconds:60}000”) Other things I discovered: the … Read more