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')
05-14
2037
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
01-07
1万+
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
10-06
1037
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
07-10
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交