在使用MP的时候给Warning了
WARNWarn: Could not find @TableId in Class: com.fehead.OceanCode.dataobject.GroupFileDO.
WARNWarn: Could not find @TableId in Class: com.fehead.OceanCode.dataobject.GroupInfoDO.
WARNWarn: Could not find @TableId in Class: com.fehead.OceanCode.dataobject.GroupUserDO.
WARNWarn: Could not find @TableId in Class: com.fehead.OceanCode.dataobject.UserInfoDO.
找了一大圈原因发现没有在实体类的自增主键上加自增主键的注解
@TableName("file_info")
public class FileInfoDO {
@TableId(value = "id",type = IdType.AUTO)//在自增主键的变量加上即可
private Integer fileId;
}