user.getUsername()==null ||"".equals(user.getUsername())这两个判断条件有什么区别?
if(user.getUsername()==null
||"".equals(user.getUsername())){
this.addFieldError("username", "用户名不能为空");
return INPUT;
}
if(user.getUsername()==null
||"".equals(user.getUsername())){
this.addFieldError("username", "用户名不能为空");
return INPUT;
}
2017-06-26
举报