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

         使用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 的问题。。。

posted @ 2018-01-05 15:08  Doyourself!  阅读(18099)  评论(1编辑  收藏  举报