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并非它报出来的那个,碰到这种问题就比较
相关文章
相关标签/搜索