login

第一步:

  

User.java的代码如下:

package cn.javabs.usermanager.entity;
/**
 * 设计  用户  的实体类
 * @author Mryang
 *
 */
public class User {

	private Integer id;
	
	private String username;
	
	private String password;
	
	private String sex;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	@Override
	public String toString() {
		return "User [id=" + id + ", username=" + username + ", password="
				+ password + ", sex=" + sex + "]";
	}
	
}

  

 

posted @ 2019-03-26 08:05  杨校  阅读(562)  评论(0编辑  收藏  举报