ibatis插入Blob类型

ibatis插入Blob类型,操做要在事物中进行,否则以下报错 java.lang.IllegalStateException, 记住了,java

 

--- 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 LobHandlerapp

相关文章
相关标签/搜索