org.apache.ibatis.type.TypeException:
最重要是这个提示信息:
Mybatis 不能完成参数映射
Could not set parameters for mapping:
这个参数是cffDate
ParameterMapping{property='cffDate',
mode=IN, javaType=class java.lang.String,
jdbcType=null, numericScale=null,
resultMapId='null', jdbcTypeName='null',
expression='null'}.
原因是类型转换异常
Cause: org.apache.ibatis.type.TypeException:
Error setting non null for parameter
#1 with JdbcType null .
Try setting a different JdbcType for this parameter
or
a different configuration property. Cause: java.lang.ClassCastException:
异常时不能把Date 转换成String
class java.util.Date cannot be cast to class java.lang.String
(java.util.Date and java.lang.String are
in module java.base of loader 'bootstrap')
Mybatis Exception Date cannot be cast to String
最新推荐文章于 2024-11-09 17:31:21 发布