您的位置:首页 > 运维架构 > Apache

org.apache.ibatis.type.TypeException: Error setting null for parameter #8 with JdbcType OTHER . Try

2020-07-18 04:17 1556 查看

向数据库添加值为null时 报错------- 
报错信息:org.apache.ibatis.type.TypeException: Error setting null for parameter #8 with JdbcType OTHER . Try setting a different JdbcType for this parameter or a different jdbcTypeForNull configuration property. Cause: java.sql.SQLException: 无效的列类型: 1111

 

我的解决方法:在mybatis-config.xml中插入  <setting name="jdbcTypeForNull" value="NULL"/>就解决了

如图:

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐