springboot整合mybatis(xml+注解) (4)

​ 然后在entity包中创建实体类User.java

public class User { private int id; private String name; private int age; private String password; public User(int id, String name, int age, String password) { this.id = id; this.name = name; this.age = age; this.password = password; } public User(){} //getter setter自行添加 }

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/wpggpf.html