Hibernate Validator 5.3.0.Alpha1 发布
欢迎加入运维网交流群:263444886Hibernate Validator 5.3.0.Alpha1 发布,此版本更新内容如下:
** 新特性
* - Implement optional> * - ConstraintValidatorContext should allow to attach arbitrary context information to a ConstrainViolation
** Bug 修复
* - Cross-parameter constraint is disallowed by Annotation Processor
* - Copying PathImpl results in hashCode==0
* - Validator.validateValue does not work for JDK-8 TYPE_USE annotations
* - Validator fails with Google App Engine due to use of restricted> * - Configuration streams not reusable on IBM JVM
* - Wrong messages in Korean for NotNull and Null
** 任务
* - Upgrade to jaxb2-maven-plugin 2.2
* - Use WildFly 10.0.0.CR5 for integration tests and update to JodaTime 2.7
** 改进
* - Monitor contention at ValidatorFactoryImpl
* - Exceptions during execution of LoadClass don't provide enough context
* - General code quality improvements
* - Improve OSGi integration addressing> 用Annotations 给类或者类的属性加上约束(constraint),在运行期检查属性值是很优雅的.Hibernate Validator就是这样的一个框架.该框架是十分容易的(就像参考文档中宣称的那样),几乎没有什么学习曲线,Validator 是一个验证框架 不需要和Hibernate的其他部分绑定就可以使用,只要在你的项目中添加Hibernate-annotations.jar库就可以了.
页:
[1]