title: How to program the spring MVC cron without annotation
body: <pre class="lang-java prettyprint-override"><code>package com.test.cron; 
  
  @Service 
  
  public class CronJob { 
      protected static final Logger logger = Logger.getLogger(CronJob.class);
  
      @Scheduled(cron="0 0 23 * * *")
      public void demoServiceMethod()
      {
          logger.debug("Cron job started.");
      }
  }
  </code></pre>
  
  <p>Cron excution time will be often changed.
  I have to exchange '@Scheduled' annotation to java code.</p>