mybatis argument type mismatch

### Error querying database.  Cause: org.apache.ibatis.reflection.ReflectionException: Could not set property 'teachers' of 'class com.beans.Student' with value 'Teacher [id=1, teacherName=觅波]' Cause: java.lang.IllegalArgumentException: argument type mismatch

出错的原因可能是实体类的字段跟数据库返回的字段对不上

或者xml文件中resultMap配置出了问题

 

 

你可能感兴趣的:(java,mybatis,java,Error,querying,database,rgument,type,mismatch)