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