mybits启动报错Result Maps collection already contains value for com.huaxia.xxx.xx.BaseResultMap

  • 2018年9月4日
  • IBits

Mybits启动时,抛出异常,异常信息:Result Maps collection already contains value for com.huaxia.xxx.xx.BaseResultMap

解决方式:搜索该映射类中是否有重名的映射标签,如:

  <update id="updateByPrimaryKey" parameterType="com.huaxia.ecmFile.file.model.AliyunToken">
    update token set at_del = #{atDel,jdbcType=INTEGER}
    where at_page_id = #{atPageId,jdbcType=INTEGER}
  </update>
  <update id="updateByPrimaryKey" parameterType="com.huaxia.ecmFile.file.model.AliyunToken">
    update token set at_del = #{atDel,jdbcType=INTEGER}
    where at_page_id = #{atPageId,jdbcType=INTEGER}
  </update>

此时,删掉一个或者重命名一个,即可处理该错误,还有一个原因可能是标签获取值的属性名写错,写成字段名了。

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注