MyBatis 插入空值时,须要指定JdbcType
mybatis insert空值报空值异常,可是在pl/sql不会提示错误,主要缘由是mybatis没法进行转换 sql
还有在向oracle插入数据时,mybatis3报Error setting null parameter. Most JDBC drivers require that the JdbcType must be specified for all nullable parameters,是因为参数出现了null值,对于Mybatis,若是进行操做的时候,没有指定jdbcType类型的参数,mybatis默认jdbcType.OTHER致使,给参数加上jdbcType可解决(注意大小写) mybatis