发布于 2017-05-12 08:32:17 | 125 次阅读 | 评论: 0 | 来源: 网友投递
Hibernate Validator Bean 验证框架
用Annotations 给类或者类的属性加上约束(constraint),在运行期检查属性值是很优雅的.Hibernate Validator就是这样的一个框架.该框架是十分容易的(就像参考文档中宣称的那样),几乎没有什么学习曲线,Validator 是一个验证框架 不需要和Hibernate的其他部分绑定就可以使用,只要在你的项目中添加Hibernate-annotations.jar库就可以了.
Hibernate Validator 6.0.0.Beta1 发布了。
更新内容:
Bug
* HV-1330 - engine - Transient failure of XmlBasedMethodValidationTest#cascadingArrayParameter
* HV-1326 - engine - NPE when null value is encountered during nested cascaded validation
* HV-1311 - engine - Some jdk.internal annotations are not ignored in constraints discovery
Improvement
* HV-1321 - engine - Add missing method re-definitions to HibernateValidatorContext
* HV-1309 - engine - @Deprecated should be ignored as a potential composing constraint annotation
* HV-1308 - build - Use license-maven-plugin instead of checkstyle to check the licenses
* HV-1305 - build - Use HTML5 doclet when generating JavaDoc with Java 9
* HV-1303 - validators - @SafeHtml should support relative URLs
完整更新内容。
下载地址: