ICode9

精准搜索请尝试: 精确搜索
首页 > 其他分享> 文章详细

MP:There is no getter for property named ‘null‘ in ‘class XXX‘异常

2021-02-23 17:00:16  阅读:13  来源: 互联网

标签:named no There private null class


在使用主键进行更新或者删除的时候,报下面错误

There is no getter for property named ‘null’ in 'class 。。。

我的代码如下

@Builder
@Data
public class Course implements Serializable {
    private static final long serialVersionUID = -16929324809307129L;
    
    private Long cid;

    private String cname;

    private Integer cstatus;

    private Integer userid;

}

解决办法如下

@TableId
private Long cid;

标签:named,no,There,private,null,class
来源: https://blog.csdn.net/qq_42224683/article/details/113995694

专注分享技术,共同学习,共同进步。侵权联系[admin#icode9.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有