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
The text was updated successfully, but these errors were encountered:
在Validation的同级包下创建文件 ValidationMessages.properties(默认使用同级目录的资源,自定义路径参考ValidationContext #setResourceBundleLocator)
ValidationMessages_cn.properties
account.required=请填写手机号或邮箱
ZhihuLoginValidation.class
context.constraint("account", "{account.required}", new NotEmpty());
Sorry, something went wrong.
No branches or pull requests
2.每次复制字段复制到呕吐,是否可以把业务校验Xml化。类似下面这个类,完全可以使用Xml的方式配置。
The text was updated successfully, but these errors were encountered: