项目场景:开发SRM接口遇到的问题
开发srm接口同步数据到mes系统
问题描述:
1:could not execute statement; nested exception is org.hibernate.exception.GenericJDBCException: could not execute statement
原因分析:
1:通过debug得知是在做插入日志的时候报的错误,分析应该是插入的字符串太长导致的
wrlog = wsRequestLogService.createTargetMesLog(interfaceCode,test, "test");
wsRequestLogService.

在开发SRM接口同步数据到MES系统时遇到'could not execute statement'异常,原因是插入日志时字符串长度超过字段限制。解决方案是通过拆分字符串后再进行插入操作,避免了字段长度超出引发的错误。
最低0.47元/天 解锁文章
1万+

被折叠的 条评论
为什么被折叠?



