Пример #1
0
 @Bean
 public CronTriggerFactoryBean cronTriggerFactoryBean() {
   CronTriggerFactoryBean stFactory = new CronTriggerFactoryBean();
   stFactory.setJobDetail(jobDetailFactoryBean().getObject());
   stFactory.setStartDelay(60000);
   stFactory.setName("cronTrigger");
   stFactory.setGroup("schedule");
   stFactory.setCronExpression("0 0 12 * * ?");
   return stFactory;
 }