title: How to set a schedule with multiple cron to do one task with spring boot
body: <p>Now I have implemented a class of SchedulingConfigurer to implement a dynamic schedule task as follow code.</p>
  
  <pre><code>@Component
  public class DynamicScheduledTask implements SchedulingConfigurer {
      private static final String DEFAULT_CRON = "* * * * * ?";
      private String cron = DEFAULT_CRON;
  
      @Override
      public void configureTasks(ScheduledTaskRegistrar taskRegistrar) {
        taskRegistrar.addTriggerTask(new Runnable() {
        @Override
        public void run() {
          //TODO MyTask
        }
      }, new Trigger() {
        @Override
        public Date nextExecutionTime(TriggerContext triggerContext) {
          CronTrigger trigger = new CronTrigger(cron);
          Date nextExecDate = trigger.nextExecutionTime(triggerContext);
          return nextExecDate;
        }
      });
      }
  
      public void setCron(String cron) {
          this.cron = cron;
      }
  }
  </code></pre>
  
  <p>But above code only do one task with one cron expression while I need to set a schedule with multiple corn expression to do the one task,what should I do?</p>