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

ibatis插入Blob类型

时间:2014-10-14 14:08:38      阅读:473      评论:0      收藏:0      [点我收藏+]

标签:io   ar   java   for   sp   on   cti   line   bs   

ibatis插入Blob类型,操作要在事物中进行,不然如下报错 java.lang.IllegalStateException, 记住了,

 

--- The error occurred while applying a parameter map.
--- Check the notice.insert-InlineParameterMap.
--- Check the parameter mapping for the ‘content‘ property.
--- Cause: java.lang.IllegalStateException: Spring transaction synchronization needs to be active for setting values in iBATIS TypeHandlers that delegate to a Spring LobHandler; nested exception is com.ibatis.common.jdbc.exception.NestedSQLException:
--- The error occurred while applying a parameter map.
--- Check the notice.insert-InlineParameterMap.
--- Check the parameter mapping for the ‘content‘ property.
--- Cause: java.lang.IllegalStateException: Spring transaction synchronization needs to be active for setting values in iBATIS TypeHandlers that delegate to a Spring LobHandler

ibatis插入Blob类型

标签:io   ar   java   for   sp   on   cti   line   bs   

原文地址:http://www.cnblogs.com/hu-liang/p/4023955.html

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