ibatis插入Blob类型

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

posted @ 2014-10-14 11:01  學亦漫長  阅读(1046)  评论(0编辑  收藏  举报