title: Can I trigger same spring batch job in different intervals during different period of time?
body: <p>I have a spring batch job which is running at an interval of 1 min.<br>
  Is it possible to run the batch in following manner? <br></p>
  <pre><code>10 am to 4 pm -&gt; Run the job at an interval of 1 minute
  4 pm to 10 am -&gt; Run the job at an interval of 1 hour
  </code></pre>
  <p>I am using XML configuration for job configuration and trigger.</p>
  <pre><code>&lt;bean id=&quot;fileReadJobCronTrigger&quot; class=&quot;org.springframework.scheduling.quartz.CronTriggerFactoryBean&quot;&gt;
      &lt;property name=&quot;jobDetail&quot; ref=&quot;fileReadJobDetail&quot; /&gt;
      &lt;property name=&quot;cronExpression&quot; value=&quot;0 0/1 * 1/1 * ? *&quot; /&gt;
  &lt;/bean&gt;
  </code></pre>