mybatis启动报错

mybatis启动报错,第1张

mybatis启动报错

org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.PersistenceException:

Error updating database. Cause: java.lang.IllegalStateException: Type handler was null on parameter mapping for property ‘__frch_val_3’. It was either not specified and/or could not be found for the javaType (com.example.autocreatetable.entity.SaveObject) : jdbcType (null) combination.

错误解决:
这个错误是参数传递时,动态sql取值的时候没有正确取值,或者对象映射错误
也就是本来应该取值为dogName的,但是取值的时候用#{name},就会取不到相应的值,报错

欢迎分享,转载请注明来源:内存溢出

原文地址: http://www.outofmemory.cn/zaji/5717833.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-12-17
下一篇 2022-12-18

发表评论

登录后才能评论

评论列表(0条)

保存