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
原文:http://www.cnblogs.com/hu-liang/p/4023955.html