(急)MyBatis中blob类型如何映射

老报错啊,直接上图,求大神!注:auctionpic是blob类型<resultMaptype="entity.Auction"id="EmpResultMap"><id... 老报错啊,直接上图,求大神! 注:auctionpic是blob类型
<resultMap type="entity.Auction" id="EmpResultMap">

<id property="auctionid" column="auctionid"/>
<result property="auctionname" column="auctionname"></result>
<result property="auctionstartprice" column="auctionstartprice"></result>
<result property="auctionupset" column="auctionupset"></result>
<result property="auctionstarttime" column="auctionstarttime"></result>
<result property="auctionendtime" column="auctionendtime"></result>
<result property="auctionpic" column="auctionpic"></result>
<result property="auctionpictype" column="auctionpictype"></result>
<result property="auctiondesc" column="auctiondesc"></result>
<result property="picName" column="picName"></result>
<collection property="auctionrecords" column="auctionid" javaType="java.util.Map" ofType="entity.Auctionrecord" select="getAuctionRecordByAuctionID" />

</resultMap>
然后就报这个错误
Caused by: java.lang.RuntimeException: Error parsing Mapper XML. Cause: java.lang.IllegalStateException: No typehandler found for property auctionpic
at org.apache.ibatis.builder.xml.XMLMapperBuilder.configurationElement(XMLMapperBuilder.java:113)
at org.apache.ibatis.builder.xml.XMLMapperBuilder.parse(XMLMapperBuilder.java:88)
at org.apache.ibatis.builder.xml.XMLConfigBuilder.mapperElement(XMLConfigBuilder.java:317)
at org.apache.ibatis.builder.xml.XMLConfigBuilder.parseConfiguration(XMLConfigBuilder.java:104)
... 4 more
展开
 我来答
haiyang6517
2015-03-20
知道答主
回答量:17
采纳率:0%
帮助的人:6.8万
展开全部
auctionpic的java类型和数据类型不匹配
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式