我想使用GWT valiation 模塊(jsr303)使用新驗證的API(1.1)和Hibernate驗證器(5.0),但是,明顯得到了麻煩與GWT驗證
ERROR: Errors in 'file:/C:/projects/qiwi-digest/webui/trunk/src/main/java/ru/befree/qiwi/client/gin/SampleValidatorFactory.java'
ERROR: Line 27: No source code is available for type javax.validation.ParameterNameProvider; did you forget to inherit a required module?
ERROR: Line 27: The method getParameterNameProvider() of type SampleValidatorFactory must override or implement a supertype method
ERROR: Line 28: No source code is available for type org.hibernate.validator.internal.engine.DefaultParameterNameProvider; did you forget to inherit a required module?
ERROR: Line 32: The method close() of type SampleValidatorFactory must override or implement a supertype method
即GWT目前沒有驗證API 1.1支持。
解決方法的任何想法?
查詢+1。歡迎來到stackoverflow。你是對的GWT模擬客戶端的hibernate驗證器,目前正在使用4.1,因此validation-api版本是1.0而不是1.1。 – SSR