如何在 Spring Boot 应用程序启动后启动 Quartz 作业
@Component
@DisallowConcurrentExecution
public class UploadCronJob extends QuartzJobBean {
@EventListener(ApplicationReadyEvent.class)
@Override
protected void executeInternal(JobExecutionContext context) throws JobExecutionException {
}
}
im getting below error is that anyother way to schedule after application start
线程“SimpleAsyncTaskExecutor-180”中的异常 java.lang.IllegalStateException:参数类型不匹配
@Component
@DisallowConcurrentExecution
public class UploadCronJob extends QuartzJobBean {
@EventListener(ApplicationReadyEvent.class)
@Override
protected void executeInternal(JobExecutionContext context) throws JobExecutionException {
}
}
im getting below error is that anyother way to schedule after application start
Exception in thread "SimpleAsyncTaskExecutor-180" java.lang.IllegalStateException: argument type mismatch
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用这样的事件:
You can use an event like this: