MyBatis 类型转换异常: org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.type.TypeException
上面报错的原因是 MyBatis 在设置参数映射时出现了类型转换异常。具体原因是无法为参数 #5 设置非空值,而 JdbcType 为 null。
解决方法可以尝试为该参数设置不同的 JdbcType 或使用不同的配置属性。
原文地址: https://www.cveoy.top/t/topic/pcoZ 著作权归作者所有。请勿转载和采集!