这里写自定义目录标题
Mybatis 学习坑记录
一:封装结果集坑
1.出现错误提示
SQL: SELECT employee_id,last_name,email,e.department_id,department_name FROM
employees e,departments d WHERE e.department_id = d.department_id AND employee_id = ? – SELECT * from employees e,departments d WHERE e.department_id = d.department_id AND e.employee_id = ?
Cause: org.apache.ibatis.type.TypeException: Could not set parameters for mapping: ParameterMapping{property=‘id’, 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 #2 with JdbcType null . Try setting a different JdbcType for this parameter or a different configuration property. Cause: org.apache.ibatis.type.TypeException**: Error s