问题描述

org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.reflection.ReflectionException: Could not set property 'id' of 'class cn.edu.zstu.qingzhu.qingzhushop.entity.Order' with value '1347938471667687425' Cause: java.lang.IllegalArgumentException: argument type mismatchat org.mybatis.spring.MyBatisExceptionTranslator.translateExceptionIfPossible(MyBatisExceptionTranslator.java:92)at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:440)... 79 more
Caused by: java.lang.IllegalArgumentException: argument type mismatchat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)at java.lang.reflect.Method.invoke(Method.java:498)at org.apache.ibatis.reflection.invoker.MethodInvoker.invoke(MethodInvoker.java:44)at org.apache.ibatis.reflection.wrapper.BeanWrapper.setBeanProperty(BeanWrapper.java:180)... 102 more

解决方案

查看数据库设计

添加注解

参考文章

MyBatis——insert错误[Could not set property ‘id‘ of ‘class‘ with value ‘xxx‘]解决方案相关推荐

  1. 【分享】insert出现Could not set property ‘id‘ of class XXXXXXXX

    前言: mybatisplus  insert出现Could not set property 'id' of class XXXXXXXX 不管是不是使用mp自带的insert还是我们直接写的ins ...

  2. 解决Mybatis查询错误:Mapped Statements collection does not contain value for xxx

    前言 新手在使用mybatis注解开发的时候,往往容易出现各种错误. 上述提到的"Mapped Statements collection does not contain value fo ...

  3. 记一次使用mybatisplus新增功能出现Could not set property ‘id‘ of class XXXXXXXX

    记一次Could not set property 'id' of 'class com.xxxx.xxx.xxxx.entity.xxxxx'的错误 > 我使用mybatisplus在表映射到 ...

  4. 记一次使用mybatisplus新增功能出现Could not set property ‘id‘ of class XXXXXXXX

    记一次Could not set property 'id' of 'class com.xxxx.xxx.xxxx.entity.xxxxx'的错误 我使用mybatisplus在表映射到的实体类上 ...

  5. 记录mybatis添加表数据时报出的错误:Could not set property ‘id‘ of ‘class com.xxx.Manager with value ‘xx...xx‘

    这里写目录标题 问题 解释问题 分析问题 解决问题 问题 服务端orm的框架使用的是mybatis ,当insert管理员时,出现如下错误: org.apache.ibatis.reflection. ...

  6. MyBatis——insert并返回主键ID解决方案

    问题描述 添加记录后获取主键ID,这是一个很常见的需求,特别是在一次前端调用中需要插入多个表的场景. 除了添加单条记录时获取主键值,有时候可能需要获取批量添加记录时各记录的主键值. 问题分析 暂无. ...

  7. Mybatis Plus——[Could not set property 'id' of '***' with value]解决方案

    问题描述 使用MybatisPlus执行插入操作时提示: Could not set property 'id' of 'class com.badao.beans.Employee' with va ...

  8. Mybatis insert返回主键ID

    Mybatis insert语句书写insert  id= "insertSelective"  useGeneratedKeys= "true"  keyPr ...

  9. MyBatis—insert语句返回主键和selectKey标签

    本文已同步至个人博客liaosi's blog - MyBatis-insert语句返回主键和selectKey标签 往数据库中插入一条记录后,有时候我们需要这条记录的主键,用于后续的操作.如果在插入 ...

最新文章

  1. 计算机设备管理器不显示com,台式机设备管理器打开是空白怎么办_win10设备管理无法显示解决方法...
  2. npm 常用命令详解
  3. 【转】matlab函数_连通区域
  4. python八:列表(list)
  5. git 怎么备份本地分支_Git常用个人备份笔记
  6. Android 拖动条(SeekBar)实例 附完整demo项目代码
  7. jqGrid格式化日期
  8. python爬虫框架怎么安装_celery如何在python爬虫中安装?
  9. 机器学习笔记六之神经网络的学习
  10. linux下如何分区格式化硬盘,Linux之磁盘如何分区,格式化挂载
  11. win11打开安全中心显示英文怎么办 windows11打开安全中心显示英文的解决方法
  12. Solr7部署报错:java.lang.NoSuchMethodError: javax.servlet.ServletInputStream.isFinished()Z
  13. 多Tab点击切换效果实现
  14. spss统计分析基础教程(上)--自学
  15. 虚拟机桥接模式设置IP
  16. P3120 [USACO15FEB]Cow Hopscotch G
  17. Mave概念及其配置
  18. 基尔霍夫定律的验证与multisim仿真(附工程文件)
  19. 【贝壳】(算法工程师)采木【Python】
  20. 拉格朗日对偶问题的一些介绍

热门文章

  1. Method Overloading
  2. java中this的含义_Javascript中的this的含义
  3. 输变电设备物联网节点设备无线组网协议_U-Link 物联网(工业互联网)服务平台
  4. 电子测量与仪器第四版pdf_固定资产管理系统_资产分类名称(电子和通信测量分析仪器篇)...
  5. java中方法的具体化_我为什么要关心Java没有具体化的泛型?
  6. axure中的拐弯箭头_Axure 8.0制作水平方向上一直来回移动的箭头
  7. 字体 素材_最新2019毛笔书法字体素材合集!自创字体解决版权,甲方看都说好...
  8. linux接收手机信号,接收关联设备的信号强度在Linux接入点
  9. python绘制概率密度曲线_[python常用图件绘制#04]核密度曲线图(峰值点显示)
  10. 操作系统读写者问题实验报告_基于S3C2410微处理器和操作系统实现光电测量仿真检测系统的设计...