系统业务

package bean; 
public class UserBean 
{ 
 private String username; 
 private String userpass; 
 public String getUsername() 
 { 
 return username; 
 } 
 public void setUsername(String username) 
 { 
 this.username = username; 
 } 
 public String getUserpass() 
 { 
 return userpass; 
 } 
 public void setUserpass(String userpass) 
 { 
 this.userpass = userpass; 
 } 
 public int check() 
 { 
 if(username.equals("zhangsan") && userpass.equals("wangwu")) 
 return 0; 
 else if(username.equals("wangwu") && userpass.equals("zhangsan")) 
 return 1; 
 else 
 return -1; 
 } 
}

  

系统业务

上一篇:Grafana+Prometheus+node_exporter实现服务器监控


下一篇:HelloWorld