其他分享
首页 > 其他分享> > 2021-09-05

2021-09-05

作者:互联网

org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.type.TypeException: Could not set parameters for mapping: ParameterMapping{property=‘keyword’, 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 #1 with JdbcType null . Try setting a different JdbcType for this parameter or a different configuration property. Cause: java.sql.SQLException: Parameter index out of range (1 > number of parameters, which is 0).

使用MyBatis时报这个错误
1.可能是使用模糊查询时格式错误
2.可能是传入传出类型出错
待补充

标签:different,05,09,ibatis,2021,org,null,Cause,TypeException
来源: https://blog.csdn.net/weixin_45961703/article/details/120114455