Spring事务问题 - 大数据clob插入需要事务

org.springframework.jdbc.UncategorizedSQLException: SqlMapClient operation; uncategorized SQLException for SQL []; SQL state [null]; error code [0];   
--- The error occurred in sqlmap_mysql/bpm/bpmlob.xml.  
--- The error occurred while applying a parameter map.  
--- Check the BPM_WORKFLOW_BPMLOB.INSERT_BPMLOB-InlineParameterMap.  
--- Check the parameter mapping for the 'procdefXml' 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 in sqlmap_mysql/bpm/bpmlob.xml.  
--- The error occurred while applying a parameter map.  
--- Check the BPM_WORKFLOW_BPMLOB.INSERT_BPMLOB-InlineParameterMap.  
--- Check the parameter mapping for the 'procdefXml' property.  

--- Cause: java.lang.IllegalStateException: Spring transaction synchronization needs to be active for setting values in iBATIS TypeHandlers that delegate to a Spring LobHandler




解决:  加入事务


你可能感兴趣的:(spring)