ビルドパスにjersey-client-2.25.1があり、javax.ws.rs.coreを変換するデフォルトのプロバイダがあります。フォームからアプリケーション/ x-www-form-urlencoded。フォーム&アプリケーション/ x-www-form-urlencodedのBody Writerが見つかりません
しかし、このコードのために:
private ClientResponse getResponse(Authorization authInstance, Form formData) {
return webResourceInstance.type(MediaType.APPLICATION_FORM_URLENCODED).
header("Authorization",encode(authInstance)).
post(ClientResponse.class, formData);
}
私は入れません:
com.sun.jersey.api.client.ClientHandlerException: com.sun.jersey.api.client.ClientHandlerException: A message body writer for Java type, class javax.ws.rs.core.Form, and MIME media type, application/x-www-form-urlencoded, was not found
at com.sun.jersey.client.urlconnection.URLConnectionClientHandler.handle(URLConnectionClientHandler.java:155)
私はthisあたりとして含むMultiPartクラスを登録する必要はありません。