🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
**ParamUser** ~~~ package com.nobb.validate; import javax.validation.constraints.NotBlank; import javax.validation.constraints.NotNull; public class ParamUser { private Integer id; private String name; @NotBlank(message="用户密码不能为空") @NotNull(message = "用户密码不能为空") private String password; @NotBlank(message="手机号码不能为空") @NotNull(message = "手机号码不能为空") private Long mobile; public Integer getId() { return id; } public void setId(Integer id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getPassword() { return password; } public void setPassword(String password) { this.password = password; } public Long getMobile() { return mobile; } public void setMobile(Long mobile) { this.mobile = mobile; } @Override public String toString() { return "ParamUser{" + "id=" + id + ", name='" + name + '\'' + ", password='" + password + '\'' + ", mobile=" + mobile + '}'; } } ~~~