码迷,mamicode.com
首页 > 其他好文 > 详细

【错误日志】Result Maps collection already contains value for XXXResultMap

时间:2020-04-25 21:56:18      阅读:82      评论:0      收藏:0      [点我收藏+]

标签:tis   last   timestamp   hda   lan   status   size   integer   启动报错   

  在整合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

标签:tis   last   timestamp   hda   lan   status   size   integer   启动报错   

原文地址:https://www.cnblogs.com/709539062rao/p/12775516.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!