我想通過Jersy客戶端調用某些「升級」REST API,Jersy客戶端聲明爲PUT並且不需要任何主體內容。 但是,當我要求如下這個API: webTarget.request().put(Entity.json(null));
它給出如下錯誤: Entity must not be null for http method PUT.
所以要知道,有沒有jersy客戶端的任何方法來調用與
public class helloWorldClient {
public static void main(String[] args) {
helloWorldClient crunchifyClient = new helloWorldClient();
crunchifyClient.getResponse();
}
priv
我有數據存儲根模塊下的一些行家模塊的大型項目,在我使用的球衣客戶依賴的模塊之一, import com.sun.jersey.api.client.Client;
import com.sun.jersey.api.client.ClientResponse;
import com.sun.jersey.api.client.WebResource;
This is the depende