3
I have tasks to do as soon as I top up my application, they run over and over again that way:
@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 didn’t want to have to stop the application every time to do this. So I was wondering if there’s a way to extend the @Scheduled spring to read some configuration file, it’s like?
you use spring boot?
– Leonardo Villela