mybatis綁定多個mapper, 打包報錯: Mapped Statements collection already contains value for xxx

最近遇到個奇怪的問題,就是mybatis配置了多個mapper映射地址,即mapper的xml文件放在多個文件下,而後,項目能夠正常運行的,可是一打包就報錯,Mapped Statements collection already contains value for xxx,這個錯誤無非就是說mapper的xml文件中有,id,有重複的,可是通過不少查詢是沒有錯誤的,由於,項目是能夠正常運行的,
相關文章
相關標籤/搜索