当前位置:网站首页>Could not determine which parameter to assign generated keys to
Could not determine which parameter to assign generated keys to
2022-06-22 11:39:00 【星域_03zhan】
今天在更新id关联表时,出现了这个错误Could not determine which parameter to assign generated keys to。
这是大致意思是不能确定将生成的key分配给哪个参数。
解决方法是指定keyProperty中的id:
keyProperty=“comTeamUser.id”
如下:
<insert id="insertId" parameterType="ComTeamUser" useGeneratedKeys="true" keyProperty="comTeamUser.id">
INSERT INTO com_user_team
(user_id,team_id)
VALUES
(#{comTeamUser.userId},#{comTeamUser.teamId})
</insert>
mapper层
int insertId(@Param("comTeamUser") ComTeamUser comTeamUser);
边栏推荐
- Redis - 12. Application problem solving
- IO之Reader案例
- “不敢去怀疑代码,又不得不怀疑代码”记一次网络请求超时分析
- KNN classification of MATLAB (with source code) is used to realize pixel classification (set the proportion of training set by yourself) and print test accuracy
- 《梦华录》成吸金王:广告主投500万排不上队,腾讯视频赢麻了?
- When the tiflash function is pushed down, it must be known that it will become a tiflash contributor in ten minutes
- Solution to the 55D problem of Niuke challenge
- Word技巧汇总
- APM flight mode switching -- source code explanation
- Dirichlet prefix and study notes
猜你喜欢

Redis - 9、持久化之AOF(Append OnlyFile)

Redis - 11、集群(Cluster)

Redis - 12、应用问题解决

Matlab的KNN分类使用(附源码),实现像素分类(自己设置训练集比例),打印测试精度

HMS Core新闻行业解决方案:让技术加上人文的温度

Utilisation de la classification knn de Matlab (avec code source), réalisation de la classification des pixels (auto - réglage de l'échelle de l'ensemble de formation), précision de l'essai d'impressi

Redis - 7、事務操作

美团基于 Flink 的实时数仓平台建设新进展

OceanBase数据库助力理想汽车智能生产线 可实现30秒内自动恢复

Redis - 7. Opérations de transaction
随机推荐
Sometimes hard work is not what you are willing to do
Struggle, programmer chapter 40 one side of the wind is full of charm, and half of the paper is charming and hates to send quiet thoughts
sql注入绕过方法总结
C#中,数组、List、ArrayList、Directory、LinkedList的区别与性能
Redis - 7. Opérations de transaction
Messari年度报告-2022
克鲁斯卡尔重构树
Linux安装部署MySQL5.7(企业常用版)超详细
Configure the GPU version of pytorch and torchvision, and learn the GPU version of torch step
分享7个免费超清的影视资源站!不管是剪辑还是珍藏都实用到哭!
Take Wei Lai to court. What's Audi's hurry?
初始transformer需要了解的一些概念
Redis - 12、应用问题解决
Cosmos、Polkadot
表格转换为LaTex格式
YuMinHong said that e-commerce schools may be opened in the future; Musk's son applied to sever the father son relationship; Hungry? Respond to a large number of users receiving the free order informa
Fight, programmer - Chapter 37 The Xiongguan pass is like an iron road. Now, I'm going to cross it from the beginning
论文解读——Factorization Meets the Neighborhood: a Multifaceted Collaborative Filtering Model
Redis - 10、主从复制
Redis - 12. Application problem solving