美文网首页
使用spring boot关于mybatis 中关于jdbcTy

使用spring boot关于mybatis 中关于jdbcTy

作者: w_water | 来源:发表于2019-05-04 16:48 被阅读0次

在mybatis xml代码 其中取值 都加上#{filter,jdbcType=VARCHAR}

主要原因

1、MyBatis 插入空值时,需要指定JdbcType
2、mybatis insert空值报空值异常,但是在pl/sql不会提示错误,主要原因是mybatis无法进行转换

注意当插入为int类型时
则为 #{filter,jdbcType=NUMERIC}

相关文章

网友评论

      本文标题:使用spring boot关于mybatis 中关于jdbcTy

      本文链接:https://www.haomeiwen.com/subject/umxfoqtx.html