发布于 2016-01-28 05:29:51 | 136 次阅读 | 评论: 0 | 来源: 网友投递
Hibernate Validator Bean 验证框架
用Annotations 给类或者类的属性加上约束(constraint),在运行期检查属性值是很优雅的.Hibernate Validator就是这样的一个框架.该框架是十分容易的(就像参考文档中宣称的那样),几乎没有什么学习曲线,Validator 是一个验证框架 不需要和Hibernate的其他部分绑定就可以使用,只要在你的项目中添加Hibernate-annotations.jar库就可以了.
Hibernate Validator 5.2.3发布了,详细改进记录包括:
** Bug
* [HV-1019] - Copying PathImpl results in hashCode==0
* [HV-1022] - Validator.validateValue does not work for JDK-8 TYPE_USE annotations
* [HV-1023] - Validator fails with Google App Engine due to use of restricted class java.util.ResourceBundle.Control
* [HV-1025] - Configuration streams not reusable on IBM JVM
* [HV-1035] - Wrong messages in Korean for NotNull and Null
* [HV-1048] - Correctly interpret version string returned by JDK 9
* [HV-1049] - Don't access annotations from "jdk.internal" package
** Task
* [HV-1045] - Use WildFly 10.0.0.CR5 for integration tests and update to JodaTime 2.7