标签:builder identity build 必须 red tail detail add default
JobDetail jobDetail2 = JobBuilder.newJob(TestDetail.class).withIdentity("111", "555").storeDurably().build();//添加job不带触发器必须写storeDurably()否则报如下异常,durable指明任务就算没有绑定Trigger仍保留在Quartz的JobStore中
scheduler.addJob(jobDetail, true);
Exception in thread "main" org.quartz.SchedulerException: Jobs added with no trigger must be durable.
创建JobDetail不写 withIdentity("111", "555"),则显示如下分组名称
DEFAULT.6da64b5bd2ee-7df01501-213c-4bae-b508-7041115e442e
标签:builder identity build 必须 red tail detail add default
原文地址:https://www.cnblogs.com/blob-liuh/p/9806374.html