当前位置:网站首页>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 .
边栏推荐
- MATLAB论文图表标准格式输出(干货)
- The Research Report "2022 RPA supplier strength matrix analysis of China's banking industry" was officially launched
- Summary and arrangement of JPA specifications
- jenkins安装
- Get you started with Apache pseudo static configuration
- restTemplate详解
- Go string operation
- FPGA 学习笔记:Vivado 2019.1 添加 IP MicroBlaze
- Simple page request and parsing cases
- mysql econnreset_Nodejs 套接字报错处理 Error: read ECONNRESET
猜你喜欢
TortoiseSVN使用情形、安装与使用
C object storage
Write API documents first or code first?
记录一下在深度学习-一些bug处理
Talk about seven ways to realize asynchronous programming
It's too convenient. You can complete the code release and approval by nailing it!
Flutter 3.0更新后如何应用到小程序开发中
UnicodeDecodeError: ‘utf-8‘ codec can‘t decode byte 0xe6 in position 76131: invalid continuation byt
jenkins安装
Write macro with word
随机推荐
Although the volume and price fall, why are the structural deposits of commercial banks favored by listed companies?
“百度杯”CTF比赛 九月场,Web:Upload
SAE international strategic investment geometry partner
峰会回顾|保旺达-合规和安全双驱动的数据安全整体防护体系
【Hot100】33. Search rotation sort array
Navigation property and entityset usage in SAP segw transaction code
Don't know these four caching modes, dare you say you understand caching?
go map
[深度学习论文笔记]使用多模态MR成像分割脑肿瘤的HNF-Netv2
[deep learning paper notes] hnf-netv2 for segmentation of brain tumors using multimodal MR imaging
STM32 reverse entry
[深度学习论文笔记]TransBTSV2: Wider Instead of Deeper Transformer for Medical Image Segmentation
Datapipeline was selected into the 2022 digital intelligence atlas and database development report of China Academy of communications and communications
Hundred days to complete the open source task of the domestic database opengauss -- openguass minimalist version 3.0.0 installation tutorial
restTemplate详解
运筹说 第68期|2022年最新影响因子正式发布 快看管科领域期刊的变化
Go pointer
ASEMI整流桥HD06参数,HD06图片,HD06应用
Operational research 68 | the latest impact factors in 2022 were officially released. Changes in journals in the field of rapid care
Go array and slice