当前位置:网站首页>Could not set property 'ID' of 'class xx' with value 'XX' argument type mismatch solution
Could not set property 'ID' of 'class xx' with value 'XX' argument type mismatch solution
2022-07-05 13:23:00 【Exquisite·】
I'm using :
idea 2018 mysql 5.5 mybatis-plus
Report errors :
Pay attention to the bold part
2019-11-16 16:53:29.651 ERROR 24132 — [nio-8080-exec-1] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.reflection.ReflectionException: Could not set property ‘id’ of ‘class com.item.DO.ClassRoomDo’ with value ‘1195625928345116673’ Cause: java.lang.IllegalArgumentException: argument type mismatch] with root cause
error analysis :
The error prompt is not set id attribute id Self growth is no problem Then it may be inserted into the database do class mybatis-plus There is no self incrementing id
terms of settlement :
stay do Class id Add... To the field @TableId Annotation settings type = IdType.AUTO To specify the id Self growth , Problem solving .
边栏推荐
- A detailed explanation of ASCII code, Unicode and UTF-8
- TortoiseSVN使用情形、安装与使用
- Le rapport de recherche sur l'analyse matricielle de la Force des fournisseurs de RPA dans le secteur bancaire chinois en 2022 a été officiellement lancé.
- 4年工作经验,多线程间的5种通信方式都说不出来,你敢信?
- Write API documents first or code first?
- 先写API文档还是先写代码?
- Hiengine: comparable to the local cloud native memory database engine
- Realize the addition of all numbers between 1 and number
- 【MySQL 使用秘籍】一网打尽 MySQL 时间和日期类型与相关操作函数(三)
- Reverse Polish notation
猜你喜欢
Word document injection (tracking word documents) incomplete
Jenkins installation
一文详解ASCII码,Unicode与utf-8
MSTP and eth trunk
CloudCompare——点云切片
爱可生SQLe审核工具顺利完成信通院‘SQL质量管理平台分级能力’评测
A detailed explanation of ASCII code, Unicode and UTF-8
记录一下在深度学习-一些bug处理
DataPipeline双料入选中国信通院2022数智化图谱、数据库发展报告
Although the volume and price fall, why are the structural deposits of commercial banks favored by listed companies?
随机推荐
#从源头解决# 自定义头文件在VS上出现“无法打开源文件“XX.h“的问题
Laravel document reading notes -mews/captcha use (verification code function)
Apicloud studio3 API management and debugging tutorial
事务的基本特性和隔离级别
What is a network port
53. 最大子数组和:给你一个整数数组 nums ,请你找出一个具有最大和的连续子数组(子数组最少包含一个元素),返回其最大和。
先写API文档还是先写代码?
【每日一题】1200. 最小绝对差
【Hot100】33. 搜索旋转排序数组
js判断数组中是否存在某个元素(四种方法)
前缀、中缀、后缀表达式「建议收藏」
go map
DataPipeline双料入选中国信通院2022数智化图谱、数据库发展报告
Rocky basics 1
Operational research 68 | the latest impact factors in 2022 were officially released. Changes in journals in the field of rapid care
APICloud Studio3 WiFi真机同步和WiFi真机预览使用说明
Shu tianmeng map × Weiyan technology - Dream map database circle of friends + 1
leetcode 10. Regular expression matching regular expression matching (difficult)
多人合作项目查看每个人写了多少行代码
“百度杯”CTF比赛 九月场,Web:Upload