在程序执行一个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类型,操作要在事务中进行
---ChecktheIfapChatRecord.insertSelective-InlineParameterMap.
---Checktheparametermappingforthe'content'property.
检查下content这个属性是否有问题
看第一句没有打印出sql啊,检查一下sql语句是否正确
具体:https://www.xuebuyuan.com/724316.html
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。