Mybatis:使用bean傳值,當傳入值為Null時,提示“無效的列型別”的解決辦法
提示:
Try setting a different JdbcType forthis parameter or a differentjdbcTypeForNull configuration property. Cause: java.sql.SQLException: 無效的列型別: 1111
解決:在mybatis-config.xml加入空值的設定
<settings>
<setting name="jdbcTypeForNull" value="NULL"/>
</settings>