当我加载一个第三方类时,我遇到了关于在非 getter 方法上使用 javax.validation.constraints.Min 的异常。我不关心那个方法,我想知道如何关闭检查,让我按原样使用其余的功能?
public com.facebook.presto.sql.analyzer.FeaturesConfig com.facebook.presto.sql.analyzer.FeaturesConfig.setConcurrentLifespansPerTask(int)] annotation @javax.validation.constraints.Min(message="{javax.validation.constraints.Min.message}", payload={}, groups={}, value=0) should be placed on a getter
检查来自: io.airlift.bootstrap 与 Guice 一起使用时
at com.google.inject.internal.Errors.throwCreationExceptionIfErrorsExist(Errors.java:543)
at com.google.inject.internal.InternalInjectorCreator.initializeStatically(InternalInjectorCreator.java:159)
at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:106)
at com.google.inject.Guice.createInjector(Guice.java:87)
at io.airlift.bootstrap.Bootstrap.initialize(Bootstrap.java:262)
谢谢。