mybatis错误分析


错误描述

项目采用mybatis + spring时,更新sql时,抛出如下错误:

picture

解决方法

mybatis插入空值时,需要指定jdbcType 将入参格式改为:#{mobile, jdbcType = VARCHAR}