I need a scheduled job in my spring application with fixed day-time (10AM in this example):
@Scheduled(cron="0 0 10 * * *")
public void mytask(){
...
}
The problem is that I want to let user configure the start time, I have the time string in my database, how can I change or setup a new cron job at runtime in spring? I think I cannot use annotations.