一. 添加pom依赖
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-boot-starter</artifactId>
<version>3.3.2</version>
</dependency>
二. 实体类
//如果表名和实体类名不一致需要做映射(TableName)
@TableName("t_users")
public class Users {
private String uuid;
private String username;
private String password;
三. Mapper
@Mapper
public interface LoginMapper extends BaseMapper<Users> {
}