title: Spring + Quartz - Trigger repeat interval exception
body: <p>I am using Quartz in my spring boot application.
  I need to set a trigger that will fire as soon as it is created and then every 30 days.</p>
  
  <p>So, i create my jobDetail</p>
  
  <pre><code>JobDetailFactoryBean jobDetailFactoryBean = new JobDetailFactoryBean();
          jobDetailFactoryBean.setJobClass(CheckContract.class);
          jobDetailFactoryBean.setName("JobDetail" + contract.getContractId());
          jobDetailFactoryBean.setGroup("timeoutJobDetail");
          jobDetailFactoryBean.setDescription("Job for timeout");
          jobDetailFactoryBean.setDurability(false);
  
          Map&lt;String, Long&gt; map = new HashMap&lt;String, Long&gt;();
          map.put("contractId", contract.getContractId());
          map.put("userId", user.getUserId());
  
          jobDetailFactoryBean.setJobDataAsMap(map);
          jobDetailFactoryBean.afterPropertiesSet();
          JobDetail jobDetail = jobDetailFactoryBean.getObject();
  </code></pre>
  
  <p>then i create the trigger and pass both to the scheduler</p>
  
  <pre><code>SimpleTriggerFactoryBean trigger = new SimpleTriggerFactoryBean();
                  trigger.setName("checkContract" + contract.getContractId());
                  trigger.setGroup("contractTriggers");
                  trigger.setJobDetail(jobDetail);
  
                  trigger.setStartTime(new Date());
  
                  trigger.setRepeatInterval(30 * 24 * 60 * 60 *1000);
                  trigger.afterPropertiesSet();
                  scheduler.getScheduler().scheduleJob(jobDetail, trigger.getObject());
  </code></pre>
  
  <p>When the trigger is created i get this exception</p>
  
  <pre><code>Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is java.lang.IllegalArgumentException: Repeat interval must be &gt;= 0]
  </code></pre>
  
  <p>pointing at <code>trigger.setRepeatInterval(30 * 24 * 60 * 60 *1000);</code></p>
  
  <p>i really don't know...</p>