title: How to load a cron expression from db and reschedule it with Spring?
body: <p>I'm using Spring scheduling to have batches in my application.</p>
  
  <pre><code>@Scheduled(cron = "${batch.name|0 0 21 * * ?}")
  public void restart() { }
  </code></pre>
  
  <p>Values are load from a properties file and default value from the @Scheduled annotation parameter.</p>
  
  <p>Now, I would like to be able to load a cron value from database (so from an object) without using Quartz library, only with the default Spring scheduler.</p>
  
  <p>Does someone know if and how it is possible?</p>
  
  <p>Thank you in advance.</p>