报错信息:Error setting null for parameter #6 with JdbcType OTHER...
作者:互联网
报错内容:
### Cause: org.apache.ibatis.type.TypeException: Error setting null for parameter #10 with JdbcType OTHER . Try setting a different JdbcType for this parameter or a different jdbcTypeForNull configuration property. Cause: java.sql.SQLException: 无效的列类型
MyBatis 插入空值时,需要指定JdbcType
mybatis insert空值报空值异常,因为mybatis无法进行转换
解决方法:
在insert语句中,增加jdbcType
例如:
#{name,jdbcType=VARCHAR}
标签:...,空值,OTHER,报错,JdbcType,null,parameter,setting 来源: https://www.cnblogs.com/Oxyy/p/15773635.html