Request processing failed; nested exception is org.mybatis.spring.MyBatisSystemException: nested exc

产生背景

在做分页查询的案例中,出现

org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.type.TypeException: 
Could not set parameters for mapping: ParameterMapping{property='id', 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: 无效的列索引

产生原因:sql语句中多了一对双引号
Request processing failed; nested exception is org.mybatis.spring.MyBatisSystemException: nested exc_第1张图片
解决方案:删除多余的双引号

你可能感兴趣的:(bug)