在mybatis-plus中使用updateById时会报
There is no getter for property named ‘null’ in
这个错误
原因是因为没有在JAVA文件中添加主键
解决方案:@Data
public class Carts {
@TableId
private Integer cartId;
private Integer num,commId;
private String imageSrc,title,price;
}



