org.apache.ibatis.type.TypeException: Error setting null for parameter #8 with JdbcType OTHER . Try
–>
向数据库添加值为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”/>就解决了
如图:
本文来源 互联网收集,文章内容系作者个人观点,不代表 本站 对观点赞同或支持。如需转载,请注明文章来源,如您发现有涉嫌抄袭侵权的内容,请联系本站核实处理。
© 版权声明
文章版权归作者所有,未经允许请勿转载。