北风留影 发表于 2016-11-24 02:35:29

mybatis异常

1.Exception in thread "main" org.springframework.jdbc.UncategorizedSQLException: Error setting null for parameter #6 with JdbcType OTHER . Try setting a different JdbcType for this parameter or a different jdbcTypeForNull configuration property. Cause: java.sql.SQLException: 无效的列类型: 1111
; uncategorized SQLException for SQL []; SQL state ; error code ; 无效的列类型: 1111; nested exception is java.sql.SQLException: 无效的列类型: 1111

解决:MyBatis 插入空值时,需要指定JdbcType
mybatis insert空值报空值异常,但是在pl/sql不会提示错误,主要原因是mybatis无法进行转换
页: [1]
查看完整版本: mybatis异常