当前位置:网站首页>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 paper chart standard format output (dry goods)
- STM32 and motor development (from architecture diagram to documentation)
- My colleague didn't understand selenium for half a month, so I figured it out for him in half an hour! Easily showed a wave of operations of climbing Taobao [easy to understand]
- 【服务器数据恢复】某品牌服务器存储raid5数据恢复案例
- MySQL --- 数据库查询 - 排序查询、分页查询
- Difference between avc1 and H264
- Go pointer
- 53. Maximum subarray sum: give you an integer array num, please find a continuous subarray with the maximum sum (the subarray contains at least one element) and return its maximum sum.
- Pycharm installation third party library diagram
猜你喜欢

Flutter 绘制波浪移动动画效果,曲线和折线图

Datapipeline was selected into the 2022 digital intelligence atlas and database development report of China Academy of communications and communications

Backup and restore of Android local SQLite database

Operational research 68 | the latest impact factors in 2022 were officially released. Changes in journals in the field of rapid care

Principle and configuration of RSTP protocol

Binder communication process and servicemanager creation process

解决uni-app配置页面、tabBar无效问题

STM32 reverse entry

Shandong University Summer Training - 20220620

Binder通信过程及ServiceManager创建过程
随机推荐
[深度学习论文笔记]TransBTSV2: Wider Instead of Deeper Transformer for Medical Image Segmentation
程序员成长第八篇:做好测试工作
Simple page request and parsing cases
Talk about seven ways to realize asynchronous programming
UnicodeDecodeError: ‘utf-8‘ codec can‘t decode byte 0xe6 in position 76131: invalid continuation byt
STM32 reverse entry
Integer ==比较会自动拆箱 该变量不能赋值为空
leetcode 10. Regular Expression Matching 正则表达式匹配 (困难)
前缀、中缀、后缀表达式「建议收藏」
Pandora IOT development board learning (HAL Library) - Experiment 7 window watchdog experiment (learning notes)
一网打尽异步神器CompletableFuture
STM32 and motor development (from architecture diagram to documentation)
How to realize batch sending when fishing
初次使用腾讯云,解决只能使用webshell连接,不能使用ssh连接。
A detailed explanation of ASCII code, Unicode and UTF-8
Datapipeline was selected into the 2022 digital intelligence atlas and database development report of China Academy of communications and communications
一文详解ASCII码,Unicode与utf-8
JPA规范总结和整理
聊聊异步编程的 7 种实现方式
LB10S-ASEMI整流桥LB10S