mybais在使用的时候报错,写法是
<if test="direct != null and direct != ''" >
#{direct,jdbcType=Integer,
</if>
最后修正为
<if test="direct != null and direct != ''" >
#{direct,jdbcType=INTEGER,
</if>
所以 mybatis配置重的jdbaType类型要是大写的,否则就会出现此种异常

本文解决了一个关于 MyBatis 中 JDBCType 属性大小写敏感的问题。作者在使用 MyBatis 进行动态 SQL 编写时遇到了错误,通过调整 jdbcType 的值为大写成功解决了该问题。
1768

被折叠的 条评论
为什么被折叠?



