We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
User 就是validator-test中的User类,做了如下改动: //@HasNotNull({"nickName"}) private String name; @NotNull private String nickName;
User user = new User();
IResult iResult = ValidHelper.failFast(user);
//返回:{javax.validation.constraints.NotNull.message} String message = iResult.notPassList().get(0).message();
返回是@NotNull的message信息,不是处理后的
The text was updated successfully, but these errors were encountered:
No branches or pull requests
User 就是validator-test中的User类,做了如下改动:
//@HasNotNull({"nickName"})
private String name;
@NotNull
private String nickName;
User user = new User();
IResult iResult = ValidHelper.failFast(user);
//返回:{javax.validation.constraints.NotNull.message}
String message = iResult.notPassList().get(0).message();
返回是@NotNull的message信息,不是处理后的
The text was updated successfully, but these errors were encountered: