org.apache.ibatis.exceptions.PersistenceException:
### Error querying database. Cause: org.apache.ibatis.executor.result.ResultMapException: Error attempting to get column 'sname' from result set. Cause: java.sql.SQLException: Invalid value for getInt() - '尚小云'
### The error may exist in com/mapper/StudentMapper.xml
### The error may involve com.mapper.StudentMapper.selectStudentScoresBySno2
### The error occurred while handling results
### SQL: select s. *,c. * from stu as s,sc as c where s.sno=? and s.sno=c.sno ;
### Cause: org.apache.ibatis.executor.result.ResultMapException: Error attempting to get column 'sname' from result set. Cause: java.sql.SQLException: Invalid value for getInt() - '尚小云'
别折腾了,换jar包吧,我用mybatis3.5.2会报这样的错误,但是2.4.2不会报错,我也不知道为什么。如果知道的留一下言呗,万分感谢。