什么是java bean?
什么是java bean? java bean的作用,和使用场景,使用注意点?
什么是java bean? java bean的作用,和使用场景,使用注意点?
2017-05-28
public class Users implements java.io.Serializable {
// Fields
private Integer uid;
private String uname;
private String password;
// Constructors
/** default constructor */
public Users() {
}
/** full constructor */
public Users(String uname, String password) {
this.uname = uname;
this.password = password;
}
// Property accessors
public Integer getUid() {
return this.uid;
}
public void setUid(Integer uid) {
this.uid = uid;
}
public String getUname() {
return this.uname;
}
public void setUname(String uname) {
this.uname = uname;
}
public String getPassword() {
return this.password;
}
public void setPassword(String password) {
this.password = password;
}
}
//这就是一个JavaBean
举报