文章目录
- 一、Mapped Statements collection already contains value for...
- 1. 异常报错描述:
- 1.1 详细描述1:
- 2. 异常报错信息案例:
- 2.1 案例1:
- 2.1.1 异常错误描述:
- 2.1.2 解决方案:
一、Mapped Statements collection already contains value for…
1. 异常报错描述:
Mapped Statements collection already contains value for …
mapped 中执行SQL语句的Statements 对象的集合存在重复的值,存在于…(java.lang.IllegalArgumentException)
1.1 详细描述1:
Caused by: java.lang.IllegalArgumentException: Mapped Statements collection already contains value for cn.tedu.csmall.product.mapper.AlbumMapper.insert. please check file [xxx\xxx…\target\classes\mapper\AlbumMapper.xml]
mapped 中执行SQL语句的Statements 对象的集合存在重复的值,存在于 cn.tedu.csmall.product.mapper.AlbumMapper.insert
中,请检查文件 xxx\xxx...\target\classes\mapper\AlbumMapper.xml
2. 异常报错信息案例:
2.1 案例1:
2.1.1 异常错误描述:
错误原因:Caused by: java.lang.IllegalArgumentException: Mapped Statements collection already contains value for cn.tedu.csmall.product.mapper.AlbumMapper.insert. please check file [D:\IdeaProjects\clone\JSD2207\jsd2206-csmall-product-teacher\target\classes\mapper\AlbumMapper.xml]
mapped 中执行SQL语句的Statements 对象的集合存在重复的值,存在于 cn.tedu.csmall.product.mapper.AlbumMapper.insert
中,请检查文件 D:\IdeaProjects\clone\JSD2207\jsd2206-csmall-product-teacher\target\classes\mapper\AlbumMapper.xml
2.1.2 解决方案:
解决思路:
1)这里,我们需要先检查我们的AlbumMapper.xml
中的 id 为insert
是否有重复的
- 未完待续…