Spring啟動了兩次 - DEFAULT_JOB_GROUP_NAME.0_notify_merchant', because one already exists with this identification


 異常日志:

org.quartz.ObjectAlreadyExistsException: Unable to store Job : 'DEFAULT_JOB_GROUP_NAME.0_notify_merchant', because one already exists with this identification.

結果:導致項目啟動時,spring啟動了兩次,重復排查發現是,controller映射地址重復

 

如圖

 

當映射地址重復時,會導致spring重復進行映射,進行二次加載,從而項目啟動失敗

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM