I have tasks to do as soon as I upload my application, they are executed repeatedly like this:
@Scheduled(fixedRate = 10000)
public void scheduleFixedRateTask() {
System.out.println("Fixed rate task - " + System.currentTimeMillis()/10000);
}
But sometimes I need to update the time interval and I did not want to have to stop the application every time to do this. So I was wondering if there is a way to extend Spring's @Scheduled so that it reads some configuration file, how?