报错提示:
nested exception is org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.type.TypeException: JDBC requires that the JdbcType must be specified for all nullable parameters.] with root cause
org.apache.ibatis.type.TypeException: JDBC requires that the JdbcType must be specified for all nullable parameters.
解决方法:SQL语句错误,检查一下SQL语句
- 查看SQL语句的参数数量有没有少了
- 参数名称拼写是否正确等错误(包括大小写、字母拼写是否正确)
- 查看对应的XXX.xml文件,查看文件内对应的sql语句(尤其是判断的部分)