org.apache.ibatis.executor.ExecutorException: There was no TypeHandler found for parameter plantype of statement net.add1s.crm.mapper.CustomerDevplanMapper.insert
报错:使用MyBatis进行添加数据操作时出现此异常
由于javaType和jdbcType的类型不匹配造成的
-
问题代码:
我数据库中的表的字段plantype 是varchar类型的。但是我操作了关联。此处的plantype是一个对象
-
解决问题。外键,就直接 .id即可
额外;注意,更改数据保存的时候也可能会遇到同样的问题,解决方式也是一样的