错误日志Result Maps collection already contains value for XXXResultMap
Posted 709539062rao
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了错误日志Result Maps collection already contains value for XXXResultMap相关的知识,希望对你有一定的参考价值。
在整合mybatis时,tomcat启动报错,结果发现是逆向工程生成了重复的代码
<resultMap id="BaseResultMap" type="com.jd.pojo.TbUser" > <id column="id" property="id" jdbcType="BIGINT" /> <result column="username" property="username" jdbcType="VARCHAR" /> <result column="password" property="password" jdbcType="VARCHAR" /> <result column="phone" property="phone" jdbcType="VARCHAR" /> <result column="email" property="email" jdbcType="VARCHAR" /> <result column="created" property="created" jdbcType="TIMESTAMP" /> <result column="updated" property="updated" jdbcType="TIMESTAMP" /> <result column="source_type" property="sourceType" jdbcType="VARCHAR" /> <result column="nick_name" property="nickName" jdbcType="VARCHAR" /> <result column="name" property="name" jdbcType="VARCHAR" /> <result column="status" property="status" jdbcType="VARCHAR" /> <result column="head_pic" property="headPic" jdbcType="VARCHAR" /> <result column="qq" property="qq" jdbcType="VARCHAR" /> <result column="account_balance" property="accountBalance" jdbcType="DECIMAL" /> <result column="is_mobile_check" property="isMobileCheck" jdbcType="VARCHAR" /> <result column="is_email_check" property="isEmailCheck" jdbcType="VARCHAR" /> <result column="sex" property="sex" jdbcType="VARCHAR" /> <result column="user_level" property="userLevel" jdbcType="INTEGER" /> <result column="points" property="points" jdbcType="INTEGER" /> <result column="experience_value" property="experienceValue" jdbcType="INTEGER" /> <result column="birthday" property="birthday" jdbcType="TIMESTAMP" /> <result column="last_login_time" property="lastLoginTime" jdbcType="TIMESTAMP" /> </resultMap>
<resultMap id="BaseResultMap" type="com.jd.pojo.TbUser"> <id column="id" jdbcType="BIGINT" property="id" /> <result column="username" jdbcType="VARCHAR" property="username" /> <result column="password" jdbcType="VARCHAR" property="password" /> <result column="phone" jdbcType="VARCHAR" property="phone" /> <result column="email" jdbcType="VARCHAR" property="email" /> <result column="created" jdbcType="TIMESTAMP" property="created" /> <result column="updated" jdbcType="TIMESTAMP" property="updated" /> <result column="source_type" jdbcType="VARCHAR" property="sourceType" /> <result column="nick_name" jdbcType="VARCHAR" property="nickName" /> <result column="name" jdbcType="VARCHAR" property="name" /> <result column="status" jdbcType="VARCHAR" property="status" /> <result column="head_pic" jdbcType="VARCHAR" property="headPic" /> <result column="qq" jdbcType="VARCHAR" property="qq" /> <result column="account_balance" jdbcType="DECIMAL" property="accountBalance" /> <result column="is_mobile_check" jdbcType="VARCHAR" property="isMobileCheck" /> <result column="is_email_check" jdbcType="VARCHAR" property="isEmailCheck" /> <result column="sex" jdbcType="VARCHAR" property="sex" /> <result column="user_level" jdbcType="INTEGER" property="userLevel" /> <result column="points" jdbcType="INTEGER" property="points" /> <result column="experience_value" jdbcType="INTEGER" property="experienceValue" /> <result column="birthday" jdbcType="TIMESTAMP" property="birthday" /> <result column="last_login_time" jdbcType="TIMESTAMP" property="lastLoginTime" /> </resultMap>
以上是关于错误日志Result Maps collection already contains value for XXXResultMap的主要内容,如果未能解决你的问题,请参考以下文章
Result Maps collection already contains value for xxxMapper.BaseResultMap错误解决办法
mybatis(错误一) 项目启动时报“Result Maps collection already contains value forxxx”的解决方案
mybatis中Invalid bound statement (not found) 和 Result Maps collection already contains value for...错误
MyBatis错误:Result Maps collection already contains value for novel.storage.mapper.NovelMapper.BaseRes
mybatis 异常Result Maps collection does not contain value for java.lang.String
Mybatis异常_02_Result Maps collection already contains value for