发布于 2017-12-18 07:25:29 | 183 次阅读 | 评论: 0 | 来源: 网友投递
Hibernate Validator Bean 验证框架
用Annotations 给类或者类的属性加上约束(constraint),在运行期检查属性值是很优雅的.Hibernate Validator就是这样的一个框架.该框架是十分容易的(就像参考文档中宣称的那样),几乎没有什么学习曲线,Validator 是一个验证框架 不需要和Hibernate的其他部分绑定就可以使用,只要在你的项目中添加Hibernate-annotations.jar库就可以了.
Hibernate Validator 6.0.6 已发布,包含一些新特性和功能改进,建议所有使用 6.0.x 系列的用户都进行升级。
改进
HV-1533 - engine:Small performance improvements
HV-1531 - engine:Regroup the ValidatorFactory scoped properties in ValidatorFactoryContext
HV-1530 - annotation-processor:Add CodePointLength to supported AP types
HV-1527 - engine:Separate Group and MetaConstraint - Path processed units in ValidationContext
HV-1525 - engine:Various AbstractMessageInterpolator performance improvements
HV-1524 - engine: Log temporal validation tolerance only if it has been explicitly set
HV-1522 - engine:Improve performance of ConstraintViolationImpl hashCode() method
HV-1506 - engine:Regroup the Validator scoped properties in ValidationContext
新特性
HV-1541 - engine:Add new constraint for ISBN
Task
HV-1546 - engine:Reintroduce AnnotationProcessingOptions
HV-1545 - engine:Reintroduce hibernate.validator.constraint_mapping_contributor
HV-1538 - engine:Make the @Incubating annotation @Documented
HV-1537 - engine:Reintroduce ReflectionParameterNameProvider to avoid API breakage
HV-1536 - engine:Update description of required permissions in the reference guide
HV-1535 - build:Use the default style for JavaDoc
下载地址: