title: Why is my Quartz trigger not updating changed Cron expression on restart of my Spring boot application?
body: <p>I have created a Cron schedule trigger in my spring boot application as follows and it is getting fired perfectly fine. The problem is that when I change the Cron schedule expression in my code below and restart the spring boot application, the Cron schedule trigger is not getting updated and still firing the old Cron schedule expression value.</p>
  
  <p>On inspecting the database tables, I see that the record in the table qrtz_cron_triggers is not getting updated.</p>
  
  <p>The record in the qrtz_cron_triggers table is </p>
  
  <p>"quartzScheduler"   "Qrtz_NEReportProcessor_Job_Trigger"    "DEFAULT"   "0 30 22 ? * *" "Asia/Calcutta"</p>
  
  <p>How to ensure that on restart of my spring boot application, the cron schedule expression value gets updated? My code is below.</p>
  
  <pre><code>    @Bean(name = "nRJobDetail")
      public JobDetail nRJobDetail() {
          return newJob().ofType(NEReportJob.class).storeDurably().withIdentity(JobKey.jobKey("Qrtz_NEReportProcessor_Job_Detail")).withDescription("Invoke NEReportProcessor Job service...").build();
      }
  
      @Bean
      public Trigger nRTrigger(@Qualifier("nRJobDetail") JobDetail job) {
          return newTrigger().forJob(job).withIdentity(TriggerKey.triggerKey("Qrtz_NEReportProcessor_Job_Trigger")).withDescription("NEReportProcessor trigger")
                  .withSchedule(CronScheduleBuilder.cronSchedule("0 00 23 ? * *")
                  )
                  .build();
      }
  </code></pre>