title: How do you execute cron job every 5 minutes?
body: <pre><code>JobDetail job1 = JobBuilder.newJob(FirstJob.class).withIdentity("job1", "group1").build();
  
          Trigger trigger1 = TriggerBuilder.newTrigger().withIdentity("cronTrigger1", "group1")
                  .withSchedule(CronScheduleBuilder.cronSchedule("*/10 * * * * ?")).build();
  
          Scheduler scheduler1 = new StdSchedulerFactory().getScheduler();
          scheduler1.start();
          scheduler1.scheduleJob(job1, trigger1);
  
          JobDetail job2 = JobBuilder.newJob(SecondJob.class).withIdentity("job2", "group2").build();
  
          Trigger trigger2 = TriggerBuilder.newTrigger().withIdentity("cronTrigger2", "group2")
                  .withSchedule(CronScheduleBuilder.cronSchedule(new CronExpression("0/7 * * * * ?"))).build();
  
          Scheduler scheduler2 = new StdSchedulerFactory().getScheduler();
          scheduler2.start();
          scheduler2.scheduleJob(job2, trigger2);
  
          Thread.sleep(100000);
  
          scheduler1.shutdown();
          scheduler2.shutdown();
  </code></pre>
  
  <p>I am trying to execute a Cron Job every 5 minutes of an hour but its not executing on time. I think that the time expression is wrong. </p>
  
  <p>How do you set the time expression for a 1, 5 minute job and a 2 for 1 hour job?</p>