在使用mybatis-plus的时候使用给实体类添加了一个私有的属性,然后Test去添加数据,发现错误了
原因就是表中没有该字段,这时候可以给实体类的属性添加一个
@TableField(exist = false)
既可以。