歡迎您光臨本站 註冊首頁

Springboot整合quartz產生錯誤及解決方案

←手機掃碼閱讀     zmcjlove @ 2020-06-08 , reply:0

1、spring boot整合quartz執行多個定時任務時報:

org.quartz.ObjectAlreadyExistsException: Unable to store Job : 'group1.job1', because one already exists with this identification.

定時任務雖然執行,但報了錯誤。第一次執行時沒有報錯誤,第二次及之後執行前會報這個錯誤,

解決辦法:
 

在初始化調度的時候clean一下: scheduler.clear();


[zmcjlove ] Springboot整合quartz產生錯誤及解決方案已經有255次圍觀

http://coctec.com/docs/java/show-post-237387.html