您的位置:首页 > 移动开发

java.lang.IllegalArgumentException: XML fragments parsed from previous mappers does not contain value for

2018-01-05 15:08 3323 查看
使用mybatis做一个简单的查询的时候,报了这个问题。代码如下:

<mapper namespace="cn.gaiay.business.zm.live.living.dao.LiveMapper">
<resultMap id="BaseResultMap" type="cn.gaiay.business.zm.live.living.model.Live">
<id column="id" jdbcType="VARCHAR" property="id" />
<result column="title" jdbcType="VARCHAR" property="title" />
<result column="description" jdbcType="VARCHAR" property="description" />

</resultMap>
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="cn.gaiay.business.zm.live.living.model.Live">
<result column="time_long" jdbcType="LONGVARCHAR" property="timeLong" />
</resultMap>
<sql id="Base_Column_List">
id, title, description
</sql>
<sql id="Blob_Column_List">
time_long
</sql>

以下省略。。。

上网搜了都说是 sql 位置的问题,或者名称的问题。最后发现是由于有两个sql id 的问题。。。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐