当前位置:网站首页>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 .
边栏推荐
- 个人组件 - 消息提示
- leetcode:221. Maximum square [essence of DP state transition]
- 龙芯派2代烧写PMON和重装系统
- Operational research 68 | the latest impact factors in 2022 were officially released. Changes in journals in the field of rapid care
- 精彩速递|腾讯云数据库6月刊
- restTemplate详解
- Write API documents first or code first?
- Actual combat simulation │ JWT login authentication
- Apicloud studio3 API management and debugging tutorial
- [daily question] 1200 Minimum absolute difference
猜你喜欢

Small case of function transfer parameters

先写API文档还是先写代码?

Detailed explanation of navigation component of openharmony application development

C object storage

国际自动机工程师学会(SAE International)战略投资几何伙伴

Huawei push service content, read notes

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é.

How to realize batch sending when fishing

Simple page request and parsing cases

Reverse Polish notation
随机推荐
龙芯派2代烧写PMON和重装系统
JS to determine whether an element exists in the array (four methods)
数据泄露怎么办?'华生·K'7招消灭安全威胁
Write macro with word
Realize the addition of all numbers between 1 and number
SAE international strategic investment geometry partner
ASEMI整流桥HD06参数,HD06图片,HD06应用
【MySQL 使用秘籍】一網打盡 MySQL 時間和日期類型與相關操作函數(三)
南理工在线交流群
Don't know these four caching modes, dare you say you understand caching?
Pandora IOT development board learning (HAL Library) - Experiment 7 window watchdog experiment (learning notes)
Get you started with Apache pseudo static configuration
FPGA 学习笔记:Vivado 2019.1 添加 IP MicroBlaze
JPA规范总结和整理
Flutter 绘制波浪移动动画效果,曲线和折线图
Solve Unicode decodeerror: 'GBK' codec can't decode byte 0xa2 in position 107
聊聊异步编程的 7 种实现方式
[深度学习论文笔记]使用多模态MR成像分割脑肿瘤的HNF-Netv2
程序员成长第八篇:做好测试工作
mysql econnreset_ Nodejs socket error handling error: read econnreset