本文共 795 字,大约阅读时间需要 2 分钟。
Request processing failed; nested exception is org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.type.TypeException: Could not set parameters for mapping: ParameterMapping{property=‘productNum’, mode=IN, javaType=class java.lang.String, jdbcType=null, numericScale=null, resultMapId=‘null’, jdbcTypeName=‘null’, expression=‘null’}. Cause: org.apache.ibatis.type.TypeException: Error setting non null for parameter #8 with JdbcType null . Try setting a different JdbcType for this parameter or a different configuration property. Cause: java.sql.SQLException: 无效的列索引
这个坑,我裂开了,mybatis的mapper.xml文件中sql语句前后有注释掉的sql都会报错,那注释这个功能在这还有毛用???/捂脸/捂脸…
所以以后大家一定要把注释的sql清干净!!!
本文地址:https://blog.csdn.net/qq_45693287/article/details/107687180
如您对本文有疑问或者有任何想说的,请点击进行留言回复,万千网友为您解惑!
转载地址:https://blog.csdn.net/weixin_29306261/article/details/116079573 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!