我创建 Quartz 作业并启动调度程序
JobDetail job = newJob(InfoCrawlerJob.class)
.withIdentity("job id", "group")
.usingJobData(jobData)
.build()
SimpleTrigger trigger = newTrigger()
.withIdentity("trigger id", "trigger-group")
.startNow()
.withSchedule(simpleSchedule()
.withIntervalInSeconds(100)
.withRepeatCount(10))
.build()
scheduler.scheduleJob(job, trigger)
scheduler.start()
石英工作正常工作。主要问题是 Spring 不会等待作业完成。我该如何解决?