Mapped Statements collection already contains value for...問題解決

Mybatis開發過程當中常常遇到Mapped Statements collection already contains value for xxx 這種錯誤。字面意思是說mapper中存在id重複的值,好比說同一個xml文件中有兩個id爲xxx的方法。這種常常是copy已有代碼的時候忘了改id致使的。不過,mybatis出現這種錯誤時,可能實際重複的id並非它報出來的那個,碰到這種問題就比較
相關文章
相關標籤/搜索