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"/>就解决了
如图:
相关文章推荐
- org.apache.ibatis.type.TypeException: Error setting null for parameter #1 with JdbcType OTHER
- Cause: org.apache.ibatis.type.TypeException: Error setting non null for parameter #1 with JdbcType
- org.apache.ibatis.type.TypeException: Error setting non null for parameter #3 with JdbcType null .
- 上海赛区-org.apache.ibatis.type.TypeException: JDBC requires that the JdbcType must be specified for all nullable parameters.
- No enum constant org.apache.ibatis.type.JdbcType.Integer
- No enum constant org.apache.ibatis.type.JdbcType.INT
- mybatis 报错: Caused by: org.apache.ibatis.type.TypeException: JDBC requires that the Jdbc
- Error setting null for parameter #2 with JdbcType OTHER .(oracle)
- Caused by: org.apache.ibatis.type.TypeException: JDBC requires that the JdbcType must be specified f
- 错误:A SPI class of type org.apache.lucene.*** with name 'Whitespace' does not exist.
- Cause: org.apache.ibatis.type.TypeException: Could not resolve type alias 'ScoreWithCountAndTime'.
- Caused by: java.lang.IllegalArgumentException: No enum constant org.apache.ibatis.type.JdbcType.inte
- mybatis No enum const class org.apache.ibatis.type.JdbcType.Integer
- Error setting null for parameter #2 with JdbcType OTHER
- An SPI class of type org.apache.lucene.codecs.PostingsFormat with name 'Lucene50' does not exist.报错
- No enum constant org.apache.ibatis.type.JdbcType.date
- Oracle数据库mybatis 插入空值时报错(with JdbcType OTHER)
- Error setting null for parameter #2 with JdbcType OTHER
- An SPI class of type org.apache.lucene.codecs.Codec with name 'Lucene62' does not exist
- Error setting null for parameter #10 with JdbcType OTHER .