mybatis存储null到oracle报错问题

来源:互联网 发布:驳程序员青春 编辑:程序博客网 时间:2024/05/21 06:42

    Error setting null parameter. Most JDBC drivers require that the JdbcType must be specified for all nullable parameters. Cause: java.sql.SQLException: 无效的列类型:……

在对应的mapper中,设置jdbcType

}如:

#{name,jdbcType=VARCHAR}

0 0
原创粉丝点击