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