报错信息:
nested exception is org.apache.ibatis.type.TypeException:
Could not set parameters for mapping:
ParameterMapping{property='queryCommand.grade', mode=IN, javaType=class java.lang.Object, jdbcType=null,
numericScale=null, resultMapId='null', jdbcTypeName='null', expression='null'}.
Cause: org.apache.ibatis.type.TypeException: Error setting non null for parameter #5 with JdbcType null .
Try setting a different JdbcType for this parameter or a different configuration property.
Cause: org.apache.ibatis.type.TypeException: Error setting non null for parameter #5 with JdbcType null .
Try setting a different
JdbcType for this parameter or a different configuration property. Cause: java.sql.SQLException: 无效的列索引
报错原因:
mapper.xml里面注释使用的是/**/导致报错,xml里面注释应该用<!-- -->。