首页 > 其他 > 详细

ibatis插入Blob类型

时间:2014-10-14 12:26:29      阅读:396      评论:0      收藏:0      [点我收藏+]

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类型

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!