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
 
                    
                     
                    
                 
                    
                 
                
            
         
         浙公网安备 33010602011771号
浙公网安备 33010602011771号