Jersey rest client not adding query parameters
问题 I'm trying to make a simple jersey rest client for google search api. Client client = ClientBuilder.newClient(); WebTarget target = client.target("https://www.googleapis.com/customsearch/v1"); target.queryParam("q", "mobile"); Response response = target.request().get(); System.out.println(response.readEntity(String.class)); As you've noticed I haven't included key and cx . Don't worry about that, it's just a simple demo. When visiting the url https://www.googleapis.com/customsearch/v1?q