使用Spring的任務調度錯誤java.lang.NoSuchMethodError: orderedSet解決

使用Spring2.0的任務調度報錯:
Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean

class [org.springframework.scheduling.quartz.JobDetailBean]: Constructor threw exception;

nested exception is java.lang.NoSuchMethodError: orderedSet
Caused by: java.lang.NoSuchMethodError: orderedSet

這是因爲commons-collections的版本太低導致的,換成3.*版本的即可。
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章