我发现在2.0.0-SNAPSHOT版本中不再支持FormUrlEncoded
注释:
} else if (annotationType == FormUrlEncoded.class) {
if (requestType != RequestType.SIMPLE) {
throw methodError("Only one encoding annotation is allowed.");
}
throw new UnsupportedOperationException("Form URL encoding shall return!");
//requestType = RequestType.FORM_URL_ENCODED;
}
但是,当我删除注释时,我得到了另一个例外:
Exception in thread "main" java.lang.IllegalArgumentException: LoginService.login: @Field parameters can only be used with form encoding. (parameter #1)
为什么这样以及为什么FormUrlEncoded
注释本身没有用@Deparcated
注释注释?