2016-11-06 190 views

回答

2

这是因为使用的是新泽西州2个库和你想导入新泽西州1班。你可以看到,javax.ws.rs.client.Client is imported correctly. This is the Client`用于新泽西2.你会使用它像

Client client = ClientBuilder.newClient(); 
WebTarget target = client.target(url); 
Response response = target.request().get(); 

参见:

+0

是的。非常感谢你。 – Yato