Springboot:Mapped Statements collection already contains value for ...selectByExampleWithRowbounds
程序员文章站
2022-07-15 12:05:10
...
做springboot练习时发现以下报错
Mapped Statements collection already contains value for com.gao.mapper.UserMapper.selectByExampleWithRowbounds
错误的原因是在UserMapper.xml发现多条相同id的语句
<select id="selectByExampleWithRowbounds" parameterType="com.gao.model.UserExample" resultMap="BaseResultMap">
解决办法:修改重复语句的id,使其id不相同,问题得到解决。
推荐阅读
-
Mapped Statements collection already contains value for xxx
-
Mapped Statements collection already contains value for ……
-
Mapped Statements collection already contains value for
-
解决报错:Mapped Statements collection already contains value for...
-
Mapped Statements collection already contains value for xxx
-
mybatis报错Mapped Statements collection already contains value
-
【MyBatis】 Mapped Statements collection already contains value for *** 错误
-
Mapped Statements collection already contains value for
-
解决Mapped Statements collection already contains value for
-
Springboot:Mapped Statements collection already contains value for ...selectByExampleWithRowbounds