2
A
回答
1
首先可言,弃用同等功能所取代并不意味着它不起作用。如果你看看在Hibernate Validator Migration Guide会看到方法验证程序的下一个演进,来阐明有你的情况无可奈何,
对于4.3版本
包org.hibernate.validator.method与其包含类 已弃用现在没有替代。在Hibernate Validator 5 中,这个包将被删除以符合Bean Validation 1.1。然后将通过 javax.validation.Validator提供 方法级别验证方法。
这是Hibernate Validator 4.3的deprecation list。
如果我们继续5.0.x版中,有关于它的更多信息,
的道路表明,参数和返回方法验证值已被标准化为Bean验证1.1和Hibernate验证的一部分,5个最终版本支持。
现在如果你想迁移到HV5/BV1.1,我建议你遵循HV5 documentation(也许你想直接去声明和验证方法限制部分)
0
在Javadoc它说,
...将由由Bean验证API 1.1作为Hibernate验证的定义5.
相关问题
- 1. Sprockets :: Environment#path is deprecated
- 2. Error $ HTTP_RAW_POST_DATA is deprecated,use the php:// input stream instead。“
- 3. HTML4 strict:border =“0”is deprecated,how to replace it
- 4. React Native - “ProgressBarAndroid is deprecated。Use ActivityIndicator instead”
- 5. @deprecated vs @Deprecated
- 6. 我可以忽略代码中的“twitter bootstrap is deprecated”警告吗?
- 7. Warning编译器完成编译后出现“Symbol TMemoryManager is deprecated”
- 8. mysql_ deprecated
- 9. Pear Error Deprecated
- 10. Titanium.Platform.id DEPRECATED in 1.8.0
- 11. actionbar setnavigationmode deprecated
- 12. 道场DEPRECATED dojo.moduleUrl
- 13. Titanium.Ti.Media.VideoPlayer.movieControlMode DEPRECATED
- 14. PHPStorm忽视@deprecated comment
- 15. 禁止`deprecated`在Xcode
- 16. ActiveRecord :: Base deprecated destroy method
- 17. YUI getElementById('id')。value deprecated?
- 18. Joda-Time Hibernate PersistentYearMonthDay Deprecated
- 19. 警告:: warnif('deprecated'...)用鲤鱼?
- 20. @Deprecated SerializationFeature.WRITE_EMPTY_JSON_ARRAYS的替代品
- 21. Java注释与像@Deprecated
- 22. JUnit4:is()vs is(notNullValue())
- 23. .is()?
- 24. is this query COUNT is impossible?
- 25. 为什么@deprecated的RetentionPolicy是RUNTIME?
- 26. 什么是@deprecated in java的反向
- 27. express js error:“express deprecated res.sendfile:Use res.sendFile instead”
- 28. 定义几个class @Deprecated立刻
- 29. Angular 2 routing-deprecated:如何检测CanActivate?
- 30. Is performSelector:onThread:withObject:waitUntilDone:ordered?
我读它,它不指定已被替换的内容。 – Rollerball