This primary key of id is primitive 不建议如此请使用包装类 in Class

解决办法:

id 的封装应该使用Integer

标准写法

import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
@Data
public class SysUser {
  @TableId(value = "id")
  private Integer id;
  private String username;
  private String password;
  private String nickname;
  private String email;
  private String phone;
  private String address;
  private java.sql.Timestamp createTime;
}

你可能感兴趣的:(spring,boot,java)