title: Scheduled job in Spring Boot
body: <p>I have a cron expression set in the application properties file as follows:</p>
  
  <pre><code>report.monthlyScheduleTime=0 10 07 1W * ?
  </code></pre>
  
  <p>and annotated like the following,</p>
  
  <pre><code>@Scheduled(cron = "${report.monthlyScheduleTime}", zone="${report.scheduleTimeZone}")
  </code></pre>
  
  <p>But when ran the application, I got the following exception.</p>
  
  <blockquote>
    <p>Caused by: java.lang.IllegalStateException: Encountered invalid
    @Scheduled method 'ReportJob': For input string: "1W".</p>
  </blockquote>
  
  <p>Spring Boot seems to not accept <code>1W</code> defined in the cron expression. Any idea why?</p>