mybatis-plus使用注意事项

要在实体类上添加注解,一定要对应到数据库表名

@TableName("USER_INFO")
public class UserInfoDao implements Serializable {
    @TableId("ID")
    private String id;
    @TableField("USER_NAME")
    private String userName;
    @TableField("USER_PWD")
    private String userPwd;
    @TableField("REAL_NAME")
    private String realName;
    @TableField("CREATE_DATE")
    private LocalDateTime createDate;
    @TableField("REMARK")
    private String remark;
    @TableField("GENDER")
    private Integer gender;
}

 

posted @ 2021-07-19 17:09  呵呵可笑  阅读(127)  评论(0编辑  收藏  举报