把STring类型转成blob类型存到数据库

Type handler was null on parameter mapping for property 'userImg. It was either not specified and/or could not be found for the javaType (java.sql.Blob) : jdbcType (null) combination.

The error may exist in com/example/dao/UsersDao.java (best guess)把STring类型转成blob类型存到数据库为什么会报这个错

img

Users这个实体类的属性userImg的类型是什么?String还是Blob?

Users这个实体类blob类型

不知道你这个问题是否已经解决, 如果还没有解决的话:

如果你已经解决了该问题, 非常希望你能够分享一下解决方案, 写成博客, 将相关链接放在评论区, 以帮助更多的人 ^-^