0
我有這樣的代碼:org.glassfish.jersey.client.ClientResponse不能應用於給定類型
Version version = commonClient.authorizedRequestBuilder(commonClient.webTarget
.path("/apps/blabla/default/" + appName + "/" + appName)
.queryParam("object_type", "app"))
.accept(MediaType.APPLICATION_JSON_TYPE)
.get(ClientResponse.class)
.getEntity(new GenericType<Version>() {});
我怎麼能解決這個問題,解決這個問題?
Error:(38, 17) java: method getEntity in class org.glassfish.jersey.client.ClientResponse cannot be applied to given types;
required: no arguments
found: <anonymous javax.ws.rs.core.GenericType<linqmap.supportool.services.gas.dto.Version>>
reason: actual and formal argument lists differ in length