1.在myeclipse中添加mysql驱动点击打开链接下载驱动
2.创建数据表点击打开链接下载数据表
3.先看一下myeclipse的目录树
4.在po包中写实体类user.java
public class User {
private int userid;
private String username;
private String password;
private int sex;
private String flag;
public int getUserid() {
return userid;
}
public void setUserid(int userid) {
this.userid = userid;
}
public String getUsername() {
return username;
}
public void setUsername(