title: Spring scheduling for multiple different times
body: <p>I'm currently doing a project to auto scraping web content when user onclick, but I got a problem is I need to run those method in different time different seconds. I have refer to <code>@Schedule</code> and TimerTask, but those only will work on fixed time. Is there any solution for my case?</p>
  <p>Code example:</p>
  <pre><code>public void run(String selectedWeb) {
     if(selectedWeb.equals(&quot;First Web&quot;)) {
        scrapeFirstWeb(); //Need this method auto execute on 8, 30, 42 seconds every minute
     }else if(selectedWeb.equals(&quot;Second Web&quot;)) {
        scrapeSecondWeb(); //Need this method auto execute on 10am, 1pm, 11pm every day
     }    
  }
  </code></pre>
  <p>PS: I have used @Scheduled annotation with cron before, but there is a problem which is this annotation will auto run all the method include those I didn't select to run. Because I may have situation to only scrape First Web or Second Web instead of both, but then the annotation will ignore which web you have select, when time is up it will excecute also. So that is my problem.</p>
  <p>If anyone know is there any way I can make @Schedule annotation run for the method I select only can do comment let me know, thanks in advance！</p>