在程序执行一个insert操作时,出现报错,求问各位大佬问题出在哪里?
报错为:
org.springframework.jdbc.UncategorizedSQLException: SqlMapClient operation; uncategorized SQLException for SQL []; SQL state [null]; error code [0];
--- The error occurred while applying a parameter map.
--- Check the IfapChatRecord.insertSelective-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 IfapChatRecord.insertSelective-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
ibatis插入Blob类型,操作要在事务中进行
具体:https://www.xuebuyuan.com/724316.html
--- Check the IfapChatRecord.insertSelective-InlineParameterMap.
--- Check the parameter mapping for the 'content' property.
检查下 content 这个属性是否有问题
看第一句没有打印出sql啊,检查一下sql语句是否正确