阅读背景:

org.apache.ibatis.type.TypeException_wuyuandzy的博客_typeexception

来源:互联网 

问题:在mapper.xml文件中插入数据,报错如下:

There was an unexpected error (type=Internal Server Error, status=500).
nested exception is org.apache.ibatis.type.TypeException: Could not set parameters for mapping: ParameterMapping{property='Sno', 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 #6 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 (6 > number of parameters, which is 5).There was an unex



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: